ws

package
v0.0.0-...-95c1afc Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRes

type ClientRes struct {
	ID       string `json:"id"`
	Username string `json:"username"`
}

type CreateRoomReq

type CreateRoomReq struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(h *models.Hub) *Handler

func (*Handler) CreateRoom

func (h *Handler) CreateRoom(c echo.Context) error

func (*Handler) GetClients

func (h *Handler) GetClients(c echo.Context) error

func (*Handler) GetRooms

func (h *Handler) GetRooms(c echo.Context) error

func (*Handler) JoinRoom

func (h *Handler) JoinRoom(c echo.Context) error

type RoomRes

type RoomRes struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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