controller

package
v0.0.0-...-a220751 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCookie

func GetCookie(c echo.Context, key string) string

Types

type MainController

type MainController struct {
	RoomUsecase *usecase.RoomUsecase
}

func (*MainController) Authenticate

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

Authenticate authenticates a client to join a room.

func (*MainController) CreateRoom

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

func (*MainController) DeleteRoom

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

ルームの削除(オーナー専用)

func (*MainController) GetParticipants

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

参加者を取得(notオーナー用つまり参加者がほかの参加者を確認する用)

func (*MainController) GetRoom

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

GetRoom retrieves a specific room by ID.

func (*MainController) IsAuth

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

認証状態を確認

func (*MainController) JoinRoom

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

JoinRoom allows a client to join a room.

func (*MainController) KickParticipant

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

参加者をキック(オーナー専用)

func (*MainController) LeaveRoom

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

ルームから退出

func (*MainController) UpdateRoomSettings

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

ルームの設定変更(オーナー専用) RoomNameとrequiresAuthをjsonで必ず受け取る

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