handler

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTemplate

func LoadTemplate(pattern string) (*template.Template, error)

LoadTemplate load html directories

Types

type AccountHandler added in v0.2.0

type AccountHandler struct {
	BaseHandler
}

AccountHandler struct

func (AccountHandler) Create added in v0.2.0

func (ah AccountHandler) Create(c echo.Context) error

Create is request to create chatroom

func (AccountHandler) CreateGet added in v0.2.0

func (ah AccountHandler) CreateGet(c echo.Context) error

CreateGet is shown to create chatroom

func (AccountHandler) Login added in v0.2.0

func (ah AccountHandler) Login(c echo.Context) error

Login is request to login

func (AccountHandler) LoginGet added in v0.2.0

func (ah AccountHandler) LoginGet(c echo.Context) error

LoginGet is shown to login

type BaseHandler

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

BaseHandler struct

type ClientHandler

type ClientHandler struct {
	BaseHandler
}

ClientHandler struct

func (ClientHandler) Request

func (ch ClientHandler) Request(c echo.Context) error

Request is chat request

type HTMLTemplate

type HTMLTemplate struct {
	Templates *template.Template
}

HTMLTemplate is HTMLTemplate struct

func (*HTMLTemplate) Render

func (t *HTMLTemplate) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render is render html

type WebSockerHandler

type WebSockerHandler struct {
	BaseHandler
	BroadCaster repository.BroadCasterRepository
}

WebSockerHandler struct

func (WebSockerHandler) Request

func (wsh WebSockerHandler) Request(c echo.Context) error

Request is websocket request

Jump to

Keyboard shortcuts

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