github.com/slava-ustovytski/docker@v1.8.2-rc1/daemon/stats_collector_windows.go (about) 1 package daemon 2 3 import "time" 4 5 // newStatsCollector returns a new statsCollector for collection stats 6 // for a registered container at the specified interval. The collector allows 7 // non-running containers to be added and will start processing stats when 8 // they are started. 9 func newStatsCollector(interval time.Duration) *statsCollector { 10 return &statsCollector{} 11 } 12 13 // statsCollector manages and provides container resource stats 14 type statsCollector struct { 15 } 16 17 // collect registers the container with the collector and adds it to 18 // the event loop for collection on the specified interval returning 19 // a channel for the subscriber to receive on. 20 func (s *statsCollector) collect(c *Container) chan interface{} { 21 return nil 22 } 23 24 // stopCollection closes the channels for all subscribers and removes 25 // the container from metrics collection. 26 func (s *statsCollector) stopCollection(c *Container) { 27 } 28 29 // unsubscribe removes a specific subscriber from receiving updates for a container's stats. 30 func (s *statsCollector) unsubscribe(c *Container, ch chan interface{}) { 31 }