Files
crawlab/backend/apps/handler.go
2021-04-29 10:44:46 +08:00

26 lines
377 B
Go

package apps
import (
"github.com/apex/log"
"github.com/crawlab-team/crawlab-core/grpc"
)
type Handler struct {
}
func (app *Handler) Init() {
_ = initModule("grpc", grpc.InitGrpcServices)
}
func (app *Handler) Run() {
log.Info("handler has started")
}
func (app *Handler) Stop() {
log.Info("handler has stopped")
}
func NewHandler() *Handler {
return &Handler{}
}