26 lines
376 B
Go
26 lines
376 B
Go
package module
|
|
|
|
import (
|
|
"git.hlsq.asia/alex/service-common/server"
|
|
"sync"
|
|
)
|
|
|
|
type ServerStatus struct {
|
|
DefaultModule
|
|
}
|
|
|
|
func (s *ServerStatus) Init() error {
|
|
server.InitStatus()
|
|
return nil
|
|
}
|
|
|
|
func (s *ServerStatus) Start(ready *sync.WaitGroup) error {
|
|
server.ListenStatus(ready)
|
|
return nil
|
|
}
|
|
|
|
func (s *ServerStatus) Stop() error {
|
|
server.CloseStatus()
|
|
return nil
|
|
}
|