Documentation ¶
Index ¶
- func NextId() int64
- type ClientConfig
- type FrontendConfig
- type FrontendServer
- func (s *FrontendServer) Destroy()
- func (s *FrontendServer) Initialize() error
- func (s *FrontendServer) OnClientClosed(client *net2.TcpClient)
- func (s *FrontendServer) OnClientDataArrived(client *net2.TcpClient, msg interface{}) error
- func (s *FrontendServer) OnClientTimer(client *net2.TcpClient)
- func (s *FrontendServer) OnConnectionClosed(conn *net2.TcpConnection)
- func (s *FrontendServer) OnConnectionDataArrived(conn *net2.TcpConnection, msg interface{}) error
- func (s *FrontendServer) OnNewClient(client *net2.TcpClient)
- func (s *FrontendServer) OnNewConnection(conn *net2.TcpConnection)
- func (s *FrontendServer) RunLoop()
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientConfig ¶
type FrontendConfig ¶
type FrontendConfig struct { ServerId int32 // 服务器ID Server80 *ServerConfig Server443 *ServerConfig Server5222 *ServerConfig SessionClient *ClientConfig AuthKeyClient *ClientConfig }
func (*FrontendConfig) String ¶
func (c *FrontendConfig) String() string
type FrontendServer ¶
type FrontendServer struct {
// contains filtered or unexported fields
}
func NewFrontendServer ¶
func NewFrontendServer(configPath string) *FrontendServer
func (*FrontendServer) Destroy ¶
func (s *FrontendServer) Destroy()
func (*FrontendServer) Initialize ¶
func (s *FrontendServer) Initialize() error
////////////////////////////////////////////////////////////////////////////////////////////////// AppInstance interface
func (*FrontendServer) OnClientClosed ¶
func (s *FrontendServer) OnClientClosed(client *net2.TcpClient)
func (*FrontendServer) OnClientDataArrived ¶
func (s *FrontendServer) OnClientDataArrived(client *net2.TcpClient, msg interface{}) error
func (*FrontendServer) OnClientTimer ¶
func (s *FrontendServer) OnClientTimer(client *net2.TcpClient)
func (*FrontendServer) OnConnectionClosed ¶
func (s *FrontendServer) OnConnectionClosed(conn *net2.TcpConnection)
func (*FrontendServer) OnConnectionDataArrived ¶
func (s *FrontendServer) OnConnectionDataArrived(conn *net2.TcpConnection, msg interface{}) error
func (*FrontendServer) OnNewClient ¶
func (s *FrontendServer) OnNewClient(client *net2.TcpClient)
////////////////////////////////////////////////////////////////////////////////////////////////// TcpClientCallBack
func (*FrontendServer) OnNewConnection ¶
func (s *FrontendServer) OnNewConnection(conn *net2.TcpConnection)
func (*FrontendServer) RunLoop ¶
func (s *FrontendServer) RunLoop()
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.