defaults

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminUser

func AdminUser() models.User

func DefaultUserlog

func DefaultUserlog(user models.User) models.Userlog

func Roles

func Roles(admin models.User, features []string) (roles []models.Role)

func UserRole

func UserRole(admin models.User, roles []models.Role) (userRoles []models.UserRole)

Types

type Defaults

type Defaults struct {
	Users     []models.User
	Roles     []models.Role
	UserRoles []models.UserRole
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL