Documentation ¶
Index ¶
- type Option
- type Options
- type Server
- func (p *Server) Close()
- func (p *Server) GetServerByID(serverID string) rpc.Server
- func (p *Server) GetServerByKind(kind string) (s rpc.Server)
- func (g *Server) RegisterServerMsgHandler(msgID string, handle func(rpc.Server, *rpcmsg.RPCMessage))
- func (p *Server) Run(watch ...string) error
- func (p *Server) SetOnSessionDisconnect(f func(gateID, CID string, uid int))
- func (r *Server) WatchService(serverNames []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetServerByKind ¶
多个服务 返回随机找到的第一个
func (*Server) RegisterServerMsgHandler ¶
func (*Server) SetOnSessionDisconnect ¶
func (*Server) WatchService ¶
Click to show internal directories.
Click to hide internal directories.