auth

package
v0.0.0-...-bd241b8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN_LEN    = 64
	TOKEN_HEADER = "X-Auth-Token"
)

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(user *models.User) (string, error)

func RetrieveTokenScenario

func RetrieveTokenScenario(db *gorp.DbMap, c *gin.Context, IDScenario int64) (*models.Scenario, error)

func RetrieveTokenUser

func RetrieveTokenUser(db *gorp.DbMap, c *gin.Context) (*models.User, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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