handlers

package
v0.0.0-...-4f4bebd Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChatOrigin

func CheckChatOrigin(r *http.Request) bool

Types

type Connection

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

func NewConnection

func NewConnection(c *chat.Chat, l *log.Logger) *Connection

func (*Connection) ListenToWs

func (conn *Connection) ListenToWs(w http.ResponseWriter, r *http.Request)

type RoomCreation

type RoomCreation struct {
	Name string `json:"name"`
}

type Rooms

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

func NewRooms

func NewRooms(c *chat.Chat, l *log.Logger) *Rooms

func (*Rooms) CreateRoom

func (r *Rooms) CreateRoom(w http.ResponseWriter, rq *http.Request)

func (*Rooms) GetRooms

func (r *Rooms) GetRooms(w http.ResponseWriter, rq *http.Request)

Jump to

Keyboard shortcuts

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