utils

package module
v0.0.0-...-ca94ec6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateToken

func GenerateToken(user models.User) (string, error)

GenerateToken function

func RespondWithError

func RespondWithError(w http.ResponseWriter, status int, error models.Error)

RespondWithError function

func ResponseJSON

func ResponseJSON(w http.ResponseWriter, data interface{})

ResponseJSON error

Types

This section is empty.

Jump to

Keyboard shortcuts

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