Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGlobalServerService ¶
func InitGlobalServerService(svrCfg *v1.ServerConfig)
Types ¶
type Server ¶
type Server struct { Common *v1.ServerConfig // contains filtered or unexported fields }
func NewServerHandler ¶
func NewServerHandler(svrCfg *v1.ServerConfig) *Server
func (*Server) GetCommonCfg ¶
func (s *Server) GetCommonCfg() *v1.ServerConfig
func (*Server) GetMem ¶
func (s *Server) GetMem() *mem.ServerStats
func (*Server) GetProxyStatsByType ¶ added in v0.0.31
func (s *Server) GetProxyStatsByType(proxyType v1.ProxyType) []*mem.ProxyStats
func (*Server) IsFirstSync ¶ added in v0.0.31
type ServerHandler ¶
type ServerHandler interface { Run() Stop() IsFirstSync() bool GetCommonCfg() *v1.ServerConfig GetMem() *mem.ServerStats GetProxyStatsByType(v1.ProxyType) []*mem.ProxyStats }
func GetGlobalServerSerivce ¶
func GetGlobalServerSerivce() ServerHandler
func GetServerSerivce ¶
func GetServerSerivce(svrCfg *v1.ServerConfig) ServerHandler
Click to show internal directories.
Click to hide internal directories.