mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
optimized code
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user