Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserModifierRole = ModifierRole("USER") AdminModifierRole = ModifierRole("ADMIN") SystemModifierRole = ModifierRole("SYSTEM") )
View Source
const ( UserSubjectType = SubjectType(iota) SystemSubjectType )
View Source
const ( JWTSignature = jwa.HS256 JWTIssuer = "https://www.example.co.id" )
Variables ¶
View Source
var Privileges = map[int64][]Privilege{}
Functions ¶
This section is empty.
Types ¶
type ModifierRole ¶
type ModifierRole = string
type Privilege ¶
type Privilege struct { Name string `json:"name" example:"Get Detail Data"` SubName string `json:"subName" example:"G.D"` Active bool `json:"active" example:"true"` }
func CreateNewPrivileges ¶
type SubjectType ¶
type SubjectType int8
Click to show internal directories.
Click to hide internal directories.