overflow_discovery/service/ContainerService.go

22 lines
372 B
Go
Raw Normal View History

2017-12-08 12:02:05 +00:00
package service
2018-03-16 07:46:31 +00:00
import (
"reflect"
cda "git.loafle.net/commons_go/di/annotation"
cdr "git.loafle.net/commons_go/di/registry"
)
func init() {
cdr.RegisterType(reflect.TypeOf((*ContainerService)(nil)))
}
2017-12-08 12:02:05 +00:00
type ContainerService struct {
2018-03-16 07:46:31 +00:00
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
2017-12-08 12:02:05 +00:00
}
func (cs *ContainerService) State() (bool, error) {
return true, nil
}