Documentation
¶
Index ¶
- func Init(userOptions ...any) (*store, error)
- func StartRest(settings *RestSettings) error
- type Options
- type RestSettings
- type User
- func (user *User) ChangeAccess(accessLevel int)
- func (user *User) ChangePassword(password string) error
- func (user *User) CheckAccess(accessLevel int) bool
- func (user *User) Delete()
- func (user *User) LogOut()
- func (user *User) LogOutFully()
- func (user *User) Session() string
- func (user *User) Username() string
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartRest ¶
func StartRest(settings *RestSettings) error
Rest api args(persistent.RestSettings)
Types ¶
type Options ¶
type Options struct {
UserSettings *UserSettings
// contains filtered or unexported fields
}
type RestSettings ¶
type User ¶
func (*User) ChangeAccess ¶
Changes access level to the desired one
func (*User) ChangePassword ¶
Resets user passsword
func (*User) CheckAccess ¶
Checks whether user has X level of access
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.