overflow_probes/service/SensorService.go
crusader ca13dea9cd ing
2018-03-26 15:55:38 +09:00

51 lines
971 B
Go

package service
import (
"context"
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
oocmci "git.loafle.net/overflow/overflow_commons_go/modules/commons/interfaces"
configM "git.loafle.net/overflow/overflow_commons_go/modules/config/model"
)
func init() {
cdr.RegisterType(reflect.TypeOf((*SensorService)(nil)))
}
type SensorService struct {
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
oocmci.Service
}
func (ss *SensorService) Start() error {
return nil
}
func (ss *SensorService) Stop(ctx context.Context) error {
return nil
}
func (ss *SensorService) StartSensor(id int64) error {
return nil
}
func (ss *SensorService) StopSensor(id int64) error {
return nil
}
func (ss *SensorService) AddSensor(config *configM.Config) error {
return nil
}
func (ss *SensorService) RemoveSensor(id int64) error {
return nil
}
func (ss *SensorService) UpdateSensor(id int64) error {
return nil
}