controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelRoomController

type DelRoomController interface {
	Handle(ctx context.Context) error
}

func NewDelRoomController

func NewDelRoomController(roomID uint16) DelRoomController

type EndGameController

type EndGameController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewEndGameController

func NewEndGameController(roomID uint16, userID uint32) EndGameController

type GetRoomInfoController

type GetRoomInfoController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewGetRoomInfoController

func NewGetRoomInfoController(roomID uint16) GetRoomInfoController

type JoinRoomInfoController

type JoinRoomInfoController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewJoinRoomInfoController

func NewJoinRoomInfoController(roomID uint16, userID uint32) JoinRoomInfoController

type LeaveRoomInfoController

type LeaveRoomInfoController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewLeaveRoomInfoController

func NewLeaveRoomInfoController(roomID uint16, userID uint32) LeaveRoomInfoController

type NewRoomController

type NewRoomController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewNewRoomController

func NewNewRoomController(room server.Room) NewRoomController

type RoomListController

type RoomListController interface {
	Handle(ctx context.Context) ([]server.Room, error)
}

func NewRoomListController

func NewRoomListController(serverID, channelID uint8) RoomListController

type ServerListController

type ServerListController interface {
	Handle(ctx context.Context) ([]server.Server, error)
}

func NewServerListController

func NewServerListController() ServerListController

type SetHostController

type SetHostController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewSetHostController

func NewSetHostController(roomID uint16, userID uint32, name string) SetHostController

type StartGameController

type StartGameController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewStartGameController

func NewStartGameController(roomID uint16, userID uint32) StartGameController

type UpdateRoomController

type UpdateRoomController interface {
	Handle(ctx context.Context) (*server.Room, error)
}

func NewUpdateRoomController

func NewUpdateRoomController(room *server.Room, safe bool) UpdateRoomController

Jump to

Keyboard shortcuts

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