room_service

package
v0.0.0-...-5387047 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoomServiceImpl

type RoomServiceImpl struct {
	// contains filtered or unexported fields
}

func NewRoomServiceImpl

func NewRoomServiceImpl(addr string) *RoomServiceImpl

func (*RoomServiceImpl) DelRoom

func (r *RoomServiceImpl) DelRoom(ctx context.Context, roomID uint16) error

func (*RoomServiceImpl) EndGame

func (r *RoomServiceImpl) EndGame(ctx context.Context, userID uint32, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) GetRoomInfo

func (r *RoomServiceImpl) GetRoomInfo(ctx context.Context, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) GetRoomList

func (r *RoomServiceImpl) GetRoomList(ctx context.Context, ServerIndex, ChannelIndex uint8) ([]server.Room, error)

func (*RoomServiceImpl) GetServiceList

func (r *RoomServiceImpl) GetServiceList(ctx context.Context) ([]server.Server, error)

func (*RoomServiceImpl) JoinRoom

func (r *RoomServiceImpl) JoinRoom(ctx context.Context, userID uint32, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) LeaveRoom

func (r *RoomServiceImpl) LeaveRoom(ctx context.Context, userID uint32, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) NewRoom

func (r *RoomServiceImpl) NewRoom(ctx context.Context, room *server.Room) (*server.Room, error)

func (*RoomServiceImpl) SetRoomHost

func (r *RoomServiceImpl) SetRoomHost(ctx context.Context, userID uint32, name string, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) StartGame

func (r *RoomServiceImpl) StartGame(ctx context.Context, userID uint32, roomID uint16) (*server.Room, error)

func (*RoomServiceImpl) UpdateRoom

func (r *RoomServiceImpl) UpdateRoom(ctx context.Context, room *server.Room) (*server.Room, error)

func (*RoomServiceImpl) UpdateRoomSafe

func (r *RoomServiceImpl) UpdateRoomSafe(ctx context.Context, room *server.Room) (*server.Room, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL