optimized code

This commit is contained in:
marvzhang
2021-04-29 11:35:39 +08:00
parent 15bd38f598
commit bbd77a43f0
8 changed files with 95 additions and 24 deletions

View File

@@ -2,6 +2,7 @@ package apps
import (
"github.com/apex/log"
"github.com/crawlab-team/crawlab-core/config"
"github.com/crawlab-team/crawlab-core/grpc"
)
@@ -9,11 +10,18 @@ type Handler struct {
}
func (app *Handler) Init() {
// config
_ = initModule("config", config.InitConfig)
// grpc
_ = initModule("grpc", grpc.InitGrpcServices)
}
func (app *Handler) Run() {
log.Info("handler has started")
func (app *Handler) Start() {
}
func (app *Handler) Wait() {
DefaultWait()
}
func (app *Handler) Stop() {