Back to godoc.org

Package handler

v0.2.0
Latest Go to latest

The highest tagged major version is .

Published: Jul 27, 2020 | License: MIT | Module: github.com/howood/kangaroochat

Index

func LoadTemplate

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

LoadTemplate load html directories

type AccountHandler

type AccountHandler struct {
	BaseHandler
}

AccountHandler struct

func (AccountHandler) Create

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

Create is request to create chatroom

func (AccountHandler) CreateGet

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

CreateGet is shown to create chatroom

func (AccountHandler) Login

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

Login is request to login

func (AccountHandler) LoginGet

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier