utils

package
v0.0.0-...-3da7468 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(hashedPassword string, password []byte) bool

func Failure

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

func GenerateToken

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

func Success

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

func SuccessWithStatus

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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