usecase

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rooms

type Rooms interface {
	Get(ctx context.Context, roomId string) (*model.Room, error)
	GetUsers(ctx context.Context, roomId string) ([]string, error)
	Create(ctx context.Context, hostID, roomName string, maxPlayers uint32, playingDuration *time.Duration) (*model.Room, error)
	RegisterUser(ctx context.Context, userId, roomId string) error
	BanUser(ctx context.Context, userId, roomId string) error
	GetQuestionCount(ctx context.Context, roomID string) (int, error)
	StartMatch(ctx context.Context, roomID string) error
	Subscribe(ctx context.Context, roomId string) (<-chan model.Event, error)
	SubscribeToAll(ctx context.Context) (<-chan model.Event, error)
	CheckIfRoomExists(ctx context.Context, id string) (bool, error)
	HandleUserFinishedAnswering(ctx context.Context, roomID string, userID string) error
}

Jump to

Keyboard shortcuts

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