Documentation
¶
Index ¶
- type User
- type Users
- func (m *Users) AddUser(username, saltword string, perms *permissions.Permissions)
- func (m *Users) HasPermission(username string, perm permissions.Permission) bool
- func (m *Users) Saltword(username string) string
- func (m *Users) SetSaltword(username, saltword string)
- func (m *Users) ToArray() []*User
- func (m *Users) User(username string) *User
- func (m *Users) UserCount() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(username, saltword string, perms *permissions.Permissions) *User
func (*User) HasPermission ¶
func (u *User) HasPermission(perm permissions.Permission) bool
func (*User) Permissions ¶
func (u *User) Permissions() *permissions.Permissions
func (*User) PermissionsString ¶
func (*User) SetSaltword ¶
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) AddUser ¶
func (m *Users) AddUser(username, saltword string, perms *permissions.Permissions)
func (*Users) HasPermission ¶
func (m *Users) HasPermission(username string, perm permissions.Permission) bool
func (*Users) SetSaltword ¶
Click to show internal directories.
Click to hide internal directories.