feat 默认模块
This commit is contained in:
@@ -2,19 +2,22 @@ package module
|
||||
|
||||
import (
|
||||
"git.hlsq.asia/mmorpg/service-common/net/grpc/service"
|
||||
"sync"
|
||||
)
|
||||
|
||||
// Grpc Grpc模块
|
||||
type Grpc struct {
|
||||
DefaultModule
|
||||
server service.IService
|
||||
}
|
||||
|
||||
func (m *Grpc) Init() error {
|
||||
func (m *Grpc) Start(ready *sync.WaitGroup) error {
|
||||
m.server.Init(ready)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Grpc) Start() error {
|
||||
m.server.Init()
|
||||
func (m *Grpc) AfterStart() error {
|
||||
m.server.SetReady()
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user