Documentation ¶
Index ¶
- type Users
- func (u Users) Authenticate(userID model.Identifier, hashedPassword string) bool
- func (u Users) CheckIfExists(userID model.Identifier) (bool, *model.User)
- func (u Users) CreateUser(userID model.Identifier, hashedPassword string, hashingAlgorithm string, ...)
- func (u Users) GetUser(userID model.Identifier) *model.User
- func (u Users) GrantRole(userID model.Identifier, permissions model.Permissions)
- func (u Users) Permission(userID model.Identifier) []model.Permissions
- func (u Users) RevokeRole(userID model.Identifier, permissionToRevoke model.Permissions) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Users ¶
type Users map[model.Identifier]*model.User
func (Users) Authenticate ¶
func (u Users) Authenticate(userID model.Identifier, hashedPassword string) bool
func (Users) CheckIfExists ¶
func (Users) CreateUser ¶
func (Users) GrantRole ¶
func (u Users) GrantRole(userID model.Identifier, permissions model.Permissions)
func (Users) Permission ¶
func (u Users) Permission(userID model.Identifier) []model.Permissions
func (Users) RevokeRole ¶ added in v1.3.3
func (u Users) RevokeRole(userID model.Identifier, permissionToRevoke model.Permissions) int
Click to show internal directories.
Click to hide internal directories.