Versions in this module Expand all Collapse all v0 v0.1.0 Nov 30, 2023 Changes in this version + func CreateUser(ctx context.Context, user *User) (err error) + type Permission struct + Created time.Time + Description sql.NullString + ID int64 + Modified time.Time + Title string + type Role struct + Created time.Time + Description sql.NullString + ID int64 + IsDefault bool + Modified time.Time + Title string + func GetRole(ctx context.Context, nameOrID any) (role *Role, err error) + func (r *Role) Permissions(ctx context.Context) (_ []*Permission, err error) + type User struct + Created time.Time + Email string + ID int64 + LastLogin sql.NullTime + Modified time.Time + Name sql.NullString + Password string + RoleID sql.NullInt64 + func GetUser(ctx context.Context, id any) (u *User, err error) + func (u *User) LoggedIn(ctx context.Context) (err error) + func (u *User) Permissions(ctx context.Context) (_ []*Permission, err error) + func (u *User) Role(ctx context.Context) (_ *Role, err error)