2017-09-29 12:30:27 +00:00
|
|
|
package collector
|
|
|
|
|
2017-10-12 10:02:38 +00:00
|
|
|
type Collector interface {
|
2017-10-13 05:32:34 +00:00
|
|
|
StartSensor() error
|
|
|
|
StopSensor() error
|
|
|
|
AddSensor() error
|
|
|
|
RemoveSensor() error
|
|
|
|
UpdateSensor() error
|
2017-10-12 10:02:38 +00:00
|
|
|
}
|
2017-09-29 12:30:27 +00:00
|
|
|
|
|
|
|
type collector struct {
|
|
|
|
}
|
|
|
|
|
2017-10-12 10:02:38 +00:00
|
|
|
func New() (Collector, error) {
|
2017-09-29 12:30:27 +00:00
|
|
|
|
|
|
|
c := &collector{}
|
|
|
|
|
|
|
|
return c, nil
|
|
|
|
}
|
|
|
|
|
2017-10-13 05:32:34 +00:00
|
|
|
func (c *collector) StartSensor() error {
|
2017-09-29 12:30:27 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-10-13 05:32:34 +00:00
|
|
|
func (c *collector) StopSensor() error {
|
2017-09-29 12:30:27 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-10-13 05:32:34 +00:00
|
|
|
func (c *collector) AddSensor() error {
|
2017-09-29 12:30:27 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-10-13 05:32:34 +00:00
|
|
|
func (c *collector) RemoveSensor() error {
|
2017-09-29 12:30:27 +00:00
|
|
|
return nil
|
|
|
|
}
|
2017-10-13 05:32:34 +00:00
|
|
|
func (c *collector) UpdateSensor() error {
|
2017-09-29 12:30:27 +00:00
|
|
|
return nil
|
|
|
|
}
|