controllers

package
v0.0.0-...-27abfae Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APILogsDelete

func APILogsDelete(context echo.Context) error

APILogsDelete delete a log

func APILogsGetAll

func APILogsGetAll(context echo.Context) error

APILogsGetAll gets all logs

func APILogsGetByID

func APILogsGetByID(context echo.Context) error

APILogsGetByID get a single log

func APILogsPost

func APILogsPost(context echo.Context) error

APILogsPost registers new log

func APILogsUpdate

func APILogsUpdate(context echo.Context) error

APILogsUpdate updates a log

func APISessionAuthenticateWithRefreshToken

func APISessionAuthenticateWithRefreshToken(context echo.Context) error

APISessionAuthenticateWithRefreshToken will provide a new JWT token for a user whose token has expired but can provide a refresh token to generate a new one

func APISessionLogin

func APISessionLogin(context echo.Context) error

APISessionLogin checks if user exists in database and returns jwt token if valid

func APISessionRefreshJWTToken

func APISessionRefreshJWTToken(context echo.Context) error

APISessionRefreshJWTToken will provide a new JWT token for a user who currently possess a valid JWT token

func APISessionRegister

func APISessionRegister(context echo.Context) error

APISessionRegister registers new user

func APIUserGetAll

func APIUserGetAll(context echo.Context) error

APIUserGetAll gets all users

func APIUserGetByID

func APIUserGetByID(context echo.Context) error

APIUserGetByID get the profile of a user

func APIUserUpdate

func APIUserUpdate(context echo.Context) error

APIUserUpdate updates a user

func Serve

func Serve(context echo.Context, statusCode int) error

Serve a successful request

func ServeWithError

func ServeWithError(context echo.Context, statusCode int, err error) error

Serve a request with errors

Types

This section is empty.

Jump to

Keyboard shortcuts

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