feat 初始化

This commit is contained in:
2026-10-29 10:12:22 +08:00
parent 332d812347
commit 09c1df8a22
81 changed files with 2211 additions and 7821 deletions

View File

@@ -0,0 +1,25 @@
package module
import (
"git.hlsq.asia/alex/service-common/server"
"sync"
)
type ServerWhitelist struct {
DefaultModule
}
func (s *ServerWhitelist) Init() error {
server.InitWhitelist()
return nil
}
func (s *ServerWhitelist) Start(ready *sync.WaitGroup) error {
server.ListenWhitelist(ready)
return nil
}
func (s *ServerWhitelist) Stop() error {
server.CloseWhitelist()
return nil
}