Documentation
¶
Index ¶
- Constants
- 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(db *sqlx.DB, teamID string, adminID string, password string) (_ *model.Team, _ *model.User, error error)
- 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)
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 CreateRoleLink ¶
func CreateTeam ¶
func CreateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.