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 }
func New ¶
func New(repo repository.RoomsRepository, logger *slog.Logger, questionsClient questionsv1connect.QuestionsServiceClient, guessesClient guessesv1connect.GuessesServiceClient, ts telemetry.TelemetryService) Rooms
Click to show internal directories.
Click to hide internal directories.