constant

package
v0.0.0-...-f4de95a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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

func CreateNewPrivileges(name string, subName string) Privilege

func (Privilege) SetActive

func (p Privilege) SetActive(active bool) Privilege

type SubjectType

type SubjectType int8

Jump to

Keyboard shortcuts

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