feat 默认模块

This commit is contained in:
2026-01-20 12:07:18 +08:00
parent a47557920c
commit 1edebb439c
10 changed files with 98 additions and 33 deletions

View File

@@ -1,17 +1,17 @@
package module
import "git.hlsq.asia/mmorpg/service-common/discover"
import (
"git.hlsq.asia/mmorpg/service-common/discover"
"sync"
)
// Discover 服务发现模块
type Discover struct {
DefaultModule
}
func (m *Discover) Init() error {
return nil
}
func (m *Discover) Start() error {
discover.Listen()
func (m *Discover) Start(ready *sync.WaitGroup) error {
discover.Listen(ready)
return nil
}
@@ -19,7 +19,3 @@ func (m *Discover) Stop() error {
discover.Close()
return nil
}
func (m *Discover) Bind(_ ...any) Module {
return m
}