overflow_probe_container_ne.../service/StateService.go
crusader 8dd32aedb8 ing
2018-03-26 11:58:39 +09:00

21 lines
358 B
Go

package service
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
)
func init() {
cdr.RegisterType(reflect.TypeOf((*StateService)(nil)))
}
type StateService struct {
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
}
func (s *StateService) State() (bool, error) {
return true, nil
}