Documentation ¶
Index ¶
- Variables
- func Authorize(id, permission string) (bool, error)
- func CreateRole(role *account.Role) error
- func CreateUser(user *account.User) error
- func DeleteRole(id string) error
- func DeleteUser(id string) error
- func FindUser(email string) (*account.User, error)
- func Init() error
- func ReadAllRoles() ([]*account.Role, error)
- func ReadRole(id string) (*account.Role, error)
- func ReadUser(id string) (*account.User, error)
- func Register(backend DB)
- func SearchUsers(limit, offset int64) ([]*account.User, error)
- func UpdateRole(role *account.Role) error
- func UpdateUser(user *account.User) error
- type Account
- type Auth
- type DB
- type Role
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
func CreateRole ¶
func CreateUser ¶
func DeleteRole ¶
func DeleteUser ¶
func ReadAllRoles ¶
func UpdateRole ¶
func UpdateUser ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.