probe/service/CrawlerService.go

46 lines
773 B
Go
Raw Normal View History

2018-04-13 11:59:46 +00:00
package service
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
cdr "git.loafle.net/commons/di-go/registry"
2018-04-26 08:43:40 +00:00
ocsp "git.loafle.net/overflow/commons-go/service/probe"
// For annotation
2018-04-13 11:59:46 +00:00
_ "git.loafle.net/overflow/commons-go/core/annotation"
)
var CrawlerServiceType = reflect.TypeOf((*CrawlerService)(nil))
func init() {
cdr.RegisterType(CrawlerServiceType)
}
type CrawlerService struct {
2018-04-26 08:43:40 +00:00
ocsp.CrawlerService
2018-04-13 11:59:46 +00:00
cda.TypeAnnotation `annotation:"@overflow:RPCService()"`
}
2018-04-17 14:11:13 +00:00
func (s *CrawlerService) InitService() error {
return nil
}
func (s *CrawlerService) StartService() error {
return nil
}
func (s *CrawlerService) StopService() {
}
func (s *CrawlerService) DestroyService() {
}
func (s *CrawlerService) Accept() error {
2018-04-13 11:59:46 +00:00
return nil
}