complex

package
v0.0.0-...-792bc57 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LengthOfSession = 44
View Source
const SqlReplaceSessions = "REPLACE INTO `sessions` (`user_iid`,`session`) VALUES (:user_iid, :session)"

Variables

This section is empty.

Functions

func AuthenticateWithPassword

func AuthenticateWithPassword(db gfsql.DB, user *model.User, password string) (*model.Session, error)
func CreateRoleLink(db sqlx.DB, role *model.Role, user *model.User) (error error)

func CreateTeam

func CreateTeam(db *sqlx.DB, teamID string, adminID string, password string) (_ *model.Team, _ *model.User, error error)

func CreateUser

func CreateUser(db *sqlx.DB, teamIID uint32, userID string, password string) (_ *model.User, error error)
func DeleteRoleLink(db sqlx.DB, role *model.Role, user *model.User) (error error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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