Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CenterClient ¶
func (*CenterClient) AddPlayer ¶
func (client *CenterClient) AddPlayer(player *Player) error
func (*CenterClient) Broadcast ¶
func (client *CenterClient) Broadcast(mesage string) error
func (*CenterClient) ListPlayer ¶
func (client *CenterClient) ListPlayer(params string) (ps []*Player, err error)
func (*CenterClient) RemovePlayer ¶
func (client *CenterClient) RemovePlayer(name string) error
type CenterServer ¶
type CenterServer struct {
// contains filtered or unexported fields
}
func NewCenterServer ¶
func NewCenterServer() *CenterServer
func (*CenterServer) Handle ¶
func (server *CenterServer) Handle(method, params string) *ipc.Response
func (*CenterServer) Name ¶
func (server *CenterServer) Name() string
Click to show internal directories.
Click to hide internal directories.