controller

package
v0.0.0-...-211e82d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSessionID

func GenerateSessionID() (string, error)

Types

type MainController

type MainController struct {
	RoomUsecase *usecase.RoomUsecase
}

func (*MainController) CreateRoom

func (mc *MainController) CreateRoom(c echo.Context) error

func (*MainController) GetRoom

func (mc *MainController) GetRoom(c echo.Context) error

GetRoom retrieves a specific room by ID.

func (*MainController) JoinRoom

func (mc *MainController) JoinRoom(c echo.Context) error

JoinRoom allows a client to join a room.

func (*MainController) WebSocketHandler

func (mc *MainController) WebSocketHandler(c echo.Context) error

WebSocketHandler handles WebSocket connections.

Jump to

Keyboard shortcuts

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