web

package
Version: v0.0.0-...-b5fa30d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutHandler

func AboutHandler(c *Context) error

func DashboardHandler

func DashboardHandler(c echo.Context) error

func HomeHandler

func HomeHandler(c *Context) error

func JWTTesterHandler

func JWTTesterHandler(c *Context) error

func LoginHandler

func LoginHandler(c *Context) error

func LoginPostHandler

func LoginPostHandler(c *Context) error

func LogoutHandler

func LogoutHandler(c *Context) error

func NewContext

func NewContext() echo.MiddlewareFunc

func RegisterHandler

func RegisterHandler(c *Context) error

func RegisterPostHandler

func RegisterPostHandler(c *Context) error

func Routers

func Routers() *echo.Echo

--------- Website Routers ---------

func UserHandler

func UserHandler(c *Context) error

func WsHandler

func WsHandler(c *Context) error

Types

type Context

type Context struct {
	echo.Context
}

func (*Context) Auth

func (ctx *Context) Auth() auth.Auth

func (*Context) OpenTracingSpan

func (ctx *Context) OpenTracingSpan() opentracing.Span

func (*Context) Session

func (ctx *Context) Session() session.Session

type HandlerFunc

type HandlerFunc func(*Context) error

type LoginForm

type LoginForm struct {
	Nickname string `form:"nickname" binding:"required"`
	Password string `form:"password" binding:"required"`
}

Jump to

Keyboard shortcuts

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