server

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 2

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

func (s *Server) IsFirstSync() bool

func (*Server) Run

func (s *Server) Run()

func (*Server) Stop

func (s *Server) Stop()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL