Documentation ¶
Index ¶
- type RoomTable
- func (r *RoomTable) AddChannel(ctx context.Context, serverID uint8, chl server.Channel)
- func (r *RoomTable) AddRoom(ctx context.Context, data *server.Room) (*server.Room, error)
- func (r *RoomTable) AddServer(ctx context.Context, srv server.Server)
- func (r *RoomTable) AddUser(ctx context.Context, roomID uint16, userID uint32) (*server.Room, error)
- func (r *RoomTable) DeleteRoom(ctx context.Context, roomid uint16) error
- func (r *RoomTable) EndGame(ctx context.Context, roomID uint16, userID uint32) (*server.Room, error)
- func (r *RoomTable) GetRoomInfo(ctx context.Context, roomID uint16) (*server.Room, error)
- func (r *RoomTable) GetRoomList(ctx context.Context, serverID, ChannelID uint8) ([]server.Room, error)
- func (r *RoomTable) GetServerList(ctx context.Context) ([]server.Server, error)
- func (r *RoomTable) LeaveUser(ctx context.Context, roomID uint16, userID uint32) (*server.Room, error)
- func (r *RoomTable) SetUserHost(ctx context.Context, roomID uint16, userID uint32, name string) (*server.Room, error)
- func (r *RoomTable) StartGame(ctx context.Context, roomID uint16, userID uint32) (*server.Room, error)
- func (r *RoomTable) UpdateRoom(ctx context.Context, data *server.Room) error
- func (r *RoomTable) UpdateRoomSafe(ctx context.Context, data *server.Room) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomTable ¶
type RoomTable struct {
// contains filtered or unexported fields
}
func NewRoomTable ¶
func NewRoomTable() *RoomTable
func (*RoomTable) AddChannel ¶
func (*RoomTable) DeleteRoom ¶
func (*RoomTable) GetRoomInfo ¶
func (*RoomTable) GetRoomList ¶
func (*RoomTable) GetServerList ¶
func (*RoomTable) SetUserHost ¶
func (*RoomTable) UpdateRoom ¶
Click to show internal directories.
Click to hide internal directories.