routes

package
v0.0.0-...-aaacf6c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c echo.Context) error

CreateUser creates a 'record' for a new user. Sample input: {"Email":"bill@aol.com","Username":"h0b0","Password":"pass"}

func DeleteUser

func DeleteUser(c echo.Context) error

DeleteUser deletes a record for a user. Sample input: {"Username":"h0b0"}

func GetUser

func GetUser(c echo.Context) error

GetUser retreives a record for a user Sample input: ?user=h0b0

func ShowDatabase

func ShowDatabase(c echo.Context) error

Return the contents of the database. For debugging and POC purposes.

func UpdateUser

func UpdateUser(c echo.Context) error

UpdateUser updates the record of a user Sample input: {"Email": "ballin@netscap.net","Username":"h0b0","Password":"NEWSECUREPASSWORD"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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