utils

package
v0.0.0-...-90cdabe Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondWithError

func RespondWithError(w http.ResponseWriter, status int)

func RespondWithErrorWithMessage

func RespondWithErrorWithMessage(w http.ResponseWriter, status int, message string)

func Response

func Response(w http.ResponseWriter, status int)

func ResponseJSON

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

func ValidateUser

func ValidateUser(user models.User) error

Checks if a user is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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