handler

package
v0.0.0-...-7fff55e Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRoom

func CreateRoom(c *fiber.Ctx, h *ws.Hub) error

func GetAvailableRooms

func GetAvailableRooms(c *fiber.Ctx, h *ws.Hub) error

func GetClientInRoom

func GetClientInRoom(c *fiber.Ctx, h *ws.Hub) error

func JoinRoom

func JoinRoom(h *ws.Hub) fiber.Handler

Types

type ClientInRoom

type ClientInRoom struct {
	ClientId string `json:"clientId"`
	Username string `json:"username"`
	RoomId   string `json:"roomId"`
}

type ClientList

type ClientList struct {
	*api.BaseResponse
	Data []ClientInRoom `json:"data"`
}

type MyRoom

type MyRoom struct {
	RoomId   string
	RoomName string
}

type Res

type Res struct {
	*api.BaseResponse
	Data *[]RoomList `json:"data"`
}

type RoomList

type RoomList struct {
	RoomName string `json:"roomName"`
	RoomId   string `json:"roomId"`
}

Jump to

Keyboard shortcuts

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