package collector type Collector interface { StartSensor() error StopSensor() error AddSensor() error RemoveSensor() error UpdateSensor() error } type collector struct { } func New() (Collector, error) { c := &collector{} return c, nil } func (c *collector) StartSensor() error { return nil } func (c *collector) StopSensor() error { return nil } func (c *collector) AddSensor() error { return nil } func (c *collector) RemoveSensor() error { return nil } func (c *collector) UpdateSensor() error { return nil }