actions

package
v0.0.0-...-7af8fb1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllUsers

func GetAllUsers() []*models.User

GetAllUsers from the database

func GetUser

func GetUser(username string) *models.User

GetUser by username

func Login

func Login(username, password string) string

Login a new user using the username and password

func Register

func Register(username, email, password string) bool

Register a new user

func Signout

func Signout(token string) bool

Signout a user

func VerifyToken

func VerifyToken(token string) bool

VerifyToken and return a boolean, if true token valid, otherwise false

Types

This section is empty.

Jump to

Keyboard shortcuts

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