move containermap to own file

This commit is contained in:
Bradley Cicenas
2016-12-30 22:17:46 +00:00
parent 72b643d5d2
commit adaa07fd4d
3 changed files with 70 additions and 70 deletions

View File

@@ -14,16 +14,6 @@ type Container struct {
reader *StatReader
}
func NewContainer(cid, names string) *Container {
return &Container{
id: cid,
done: make(chan bool),
stats: make(chan *docker.Stats),
widgets: NewWidgets(cid, names),
reader: &StatReader{},
}
}
func (c *Container) Collect(client *docker.Client) {
go func() {