package auth

type Permission int
type Role struct {
	Name        string
	Permissions Permission
}

const (
	AdminPermission Permission = 0xff - (1<<iota - 1)
	ManagerPermission
	UserPermission
	GuestPermission
)

var Roles = []Role{
	{"admin", AdminPermission},
	{"manager", ManagerPermission},
	{"user", UserPermission},
	{"guest", GuestPermission},
}
