Documentation ¶
Index ¶
- func GetSesionFromContext(c context.Context) *session.Session
- type Agent
- func (a *Agent) AquireGameServer(c context.Context, e *Empty) (*ServerInfo, error)
- func (a *Agent) AquireOtherAgent(c context.Context, e *Empty) (*ServerInfo, error)
- func (a *Agent) AquireSessionKey(c context.Context, e *Empty) (*SessionKey, error)
- func (a *Agent) CreateAccount(c context.Context, in *RegistInput) (*Error, error)
- func (a *Agent) CreateRoom(c context.Context, roomSetting *RoomSetting) (*Success, error)
- func (a *Agent) GetSessionCache(c context.Context, e *Empty) (*SessionCache, error)
- func (a *Agent) Init(ip, agentToGamePort, clientToGamePort string)
- func (a *Agent) JoinRoom(c context.Context, id *ID) (*Success, error)
- func (a *Agent) Login(c context.Context, in *LoginInput) (*UserInfo, error)
- func (a *Agent) Pipe(ClientToAgent_PipeServer) error
- func (a *Agent) RoomReady(c context.Context, e *Empty) (*Success, error)
- func (a *Agent) SetAccount(context.Context, *AttrSetting) (*Success, error)
- func (a *Agent) SetCharacter(c context.Context, setting *CharacterSetting) (*Success, error)
- func (a *Agent) UpdateHome(*Empty, ClientToAgent_UpdateHomeServer) error
- func (a *Agent) UpdateRoomContent(e *Empty, stream ClientToAgent_UpdateRoomContentServer) error
- func (a *Agent) UpdateRoomList(e *Empty, stream ClientToAgent_UpdateRoomListServer) error
- func (a *Agent) UpdateUserList(*Empty, ClientToAgent_UpdateUserListServer) error
- type ErrorPipe
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
func NewAgentRpc ¶
func NewAgentRpc() (agent *Agent)
func (*Agent) AquireGameServer ¶
allocate room
func (*Agent) AquireOtherAgent ¶
func (*Agent) AquireSessionKey ¶
func (*Agent) CreateAccount ¶
func (*Agent) CreateRoom ¶
func (*Agent) GetSessionCache ¶
func (*Agent) SetAccount ¶
UserSetting
func (*Agent) SetCharacter ¶
func (*Agent) UpdateHome ¶
View
func (*Agent) UpdateRoomContent ¶
func (*Agent) UpdateRoomList ¶
func (*Agent) UpdateUserList ¶
Click to show internal directories.
Click to hide internal directories.