mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
26 lines
377 B
Go
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{}
|
|
}
|