handlers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ChatLink = "/websoket?token="

Variables

This section is empty.

Functions

func ActiveUsers added in v1.2.0

func ActiveUsers(ctx echo.Context) (err error)

func AllMessages added in v1.4.0

func AllMessages(ctx echo.Context) (err error)

func CreateMessage added in v1.4.0

func CreateMessage(ctx echo.Context) (err error)

func ListOfUsers added in v1.2.0

func ListOfUsers(ctx echo.Context) (err error)

func Login

func Login(ctx echo.Context) (err error)

func Register

func Register(ctx echo.Context) (err error)

func WebSocket added in v1.2.0

func WebSocket(ctx echo.Context) (err error)

Types

type AuthRequest added in v1.1.3

type AuthRequest struct {
	UserName string `json:"userName"`
	Password string `json:"password"`
}

type LoginResponse

type LoginResponse struct {
	Url string `json:"url"`
}

type MessageRequest added in v1.4.0

type MessageRequest struct {
	Body string `json:"body"`
}

type RegisterResponse

type RegisterResponse struct {
	Id       string `json:"id"`
	UserName string `json:"userName"`
}

Jump to

Keyboard shortcuts

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