service

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelRoomService

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

func NewDelRoomService

func NewDelRoomService(roomID uint16) DelRoomService

type EndService

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

func NewEndService

func NewEndService(roomID uint16, userID uint32) EndService

type GetRoomInfoService

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

func NewGetRoomInfoService

func NewGetRoomInfoService(roomID uint16) GetRoomInfoService

type JoinService

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

func NewJoinService

func NewJoinService(roomID uint16, userID uint32) JoinService

type LeaveService

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

func NewLeaveService

func NewLeaveService(roomID uint16, userID uint32) LeaveService

type NewRoomService

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

func NewNewRoomService

func NewNewRoomService(room server.Room) NewRoomService

type RoomListService

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

func NewRoomListService

func NewRoomListService(serverID, channelID uint8) RoomListService

type ServerListService

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

func NewServerListService

func NewServerListService() ServerListService

type SetHostService

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

func NewSetHostService

func NewSetHostService(roomID uint16, userID uint32, name string) SetHostService

type StartService

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

func NewStartService

func NewStartService(roomID uint16, userID uint32) StartService

type UpdateRoomService

type UpdateRoomService interface {
	UpdateRoom(ctx context.Context) (*server.Room, error)
	UpdateRoomSafe(ctx context.Context) (*server.Room, error)
}

func NewUpdateRoomService

func NewUpdateRoomService(room *server.Room) UpdateRoomService

Jump to

Keyboard shortcuts

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