handlers

package
v0.0.0-...-9a10ecf Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormPage

func FormPage(c echo.Context) error

FormPage reders login page

func GetTicket

func GetTicket(c echo.Context) error

GetTicket returns the userID ticket.

func HealthCheck

func HealthCheck(c echo.Context) error

HealthCheck is the heath check function.

func Login

func Login(c echo.Context) error

Login checks MongoDB if this user exists and then returns a JWT session cookie.

func ReadCookie

func ReadCookie(c echo.Context) error

ReadCookie reads a cookie from echo Context.

func RegisterUser

func RegisterUser(c echo.Context) error

RegisterUser registers a new user into MongoDB.

func WriteCookie

func WriteCookie(c echo.Context, jwt string) error

WriteCookie writes a cookie into echo Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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