Files
crawlab/backend/apps/handler.go
2021-04-29 11:35:39 +08:00

34 lines
506 B
Go

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