api

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 PageGame

func PageGame(c echo.Context) error

PageGame renders the game page

func PageLogin

func PageLogin(c echo.Context) error

PageLogin renders login page

func PageRanking

func PageRanking(c echo.Context) error

func ReadCookie

func ReadCookie(c echo.Context) (string, error)

ReadCookie reads a cookie from echo Context.

func Register

func Register(c echo.Context) error

Register registers a new user into MongoDB.

func Root

func Root(c echo.Context) error

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