overflow_probes/service/SensorService.go

37 lines
674 B
Go
Raw Normal View History

2017-12-02 03:13:08 +00:00
package service
2017-12-05 10:02:58 +00:00
import (
2017-12-08 12:01:38 +00:00
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
2017-12-05 10:02:58 +00:00
configM "git.loafle.net/overflow/overflow_commons_go/modules/config/model"
)
2017-12-08 12:01:38 +00:00
func init() {
cdr.RegisterType(reflect.TypeOf((*SensorService)(nil)), &cda.ComponentAnnotation{})
}
2017-12-02 03:13:08 +00:00
type SensorService struct {
}
2017-12-04 11:59:51 +00:00
func (ss *SensorService) Start(id int64) error {
2017-12-05 10:02:58 +00:00
return nil
2017-12-04 11:59:51 +00:00
}
func (ss *SensorService) Stop(id int64) error {
2017-12-05 10:02:58 +00:00
return nil
2017-12-04 11:59:51 +00:00
}
func (ss *SensorService) Add(config *configM.Config) error {
2017-12-05 10:02:58 +00:00
return nil
2017-12-04 11:59:51 +00:00
}
func (ss *SensorService) Remove(id int64) error {
2017-12-05 10:02:58 +00:00
return nil
2017-12-04 11:59:51 +00:00
}
func (ss *SensorService) Update(id int64) error {
2017-12-05 10:02:58 +00:00
return nil
2017-12-04 11:59:51 +00:00
}