Documentation ¶
Index ¶
- func CheckUserPassword(hash, password string) error
- func CreateGroup(ctx context.Context, arg CreateGroupParams) (int64, error)
- func CreateUser(ctx context.Context, cfg system.Config, arg CreateUserParams) (int64, error)
- func CreateUserSession(ctx context.Context, arg CreateUserSessionParams) (string, error)
- func DeleteGroup(ctx context.Context, id int64) error
- func DeleteOtherUserSessions(ctx context.Context, userID int64, currentSessionID int64) error
- func DeleteUser(ctx context.Context, id int64) error
- func DeleteUserSession(ctx context.Context, userID int64, sessionID int64) error
- func DeleteUserSessionBySession(ctx context.Context, session string) error
- func GetUser(ctx context.Context) (repo.User, error)
- func GetUserByUsernameOrEmail(ctx context.Context, usernameOrEmail string) (repo.User, error)
- func GetUserSessionForContext(ctx context.Context, session string) (repo.AuthGetUserSessionForContextRow, error)
- func Init(_app App)
- func ListGroups(ctx context.Context) ([]repo.AuthListGroupsForUserRow, error)
- func ListUserSessions(ctx context.Context) ([]repo.UserSession, error)
- func TouchUserSession(ctx context.Context, arg TouchUserSessionParams) error
- func UpdateGroup(ctx context.Context, arg UpdateGroupParams) error
- func UpdateGroupDisable(ctx context.Context, userID int64, disable bool) error
- func UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func UpdateUserAdmin(ctx context.Context, id int64, admin bool) error
- func UpdateUserDisabled(ctx context.Context, id int64, disable bool) error
- func UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
- func UpdateUserUsername(ctx context.Context, userID int64, newUsername string) error
- func WithSession(ctx context.Context, session Session) context.Context
- type App
- type CreateGroupParams
- type CreateUserParams
- type CreateUserSessionParams
- type Session
- type TouchSessionThrottle
- type TouchUserSessionParams
- type UpdateGroupParams
- type UpdateUserParams
- type UpdateUserPasswordParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserPassword ¶
func CreateGroup ¶
func CreateGroup(ctx context.Context, arg CreateGroupParams) (int64, error)
func CreateUser ¶
func CreateUserSession ¶
func CreateUserSession(ctx context.Context, arg CreateUserSessionParams) (string, error)
func DeleteOtherUserSessions ¶
func DeleteUserSession ¶
func ListGroups ¶
func ListGroups(ctx context.Context) ([]repo.AuthListGroupsForUserRow, error)
func ListUserSessions ¶
func ListUserSessions(ctx context.Context) ([]repo.UserSession, error)
func TouchUserSession ¶
func TouchUserSession(ctx context.Context, arg TouchUserSessionParams) error
func UpdateGroup ¶
func UpdateGroup(ctx context.Context, arg UpdateGroupParams) error
func UpdateGroupDisable ¶
func UpdateUser ¶
func UpdateUser(ctx context.Context, arg UpdateUserParams) error
func UpdateUserDisabled ¶
func UpdateUserPassword ¶
func UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error
func UpdateUserUsername ¶
Types ¶
type CreateGroupParams ¶
type CreateUserParams ¶
type CreateUserSessionParams ¶
type TouchSessionThrottle ¶
func NewTouchSessionThrottle ¶
func NewTouchSessionThrottle() TouchSessionThrottle
type TouchUserSessionParams ¶
type UpdateGroupParams ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.