enumdef

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserRoleAdmin = enum.New[UserRole](1, "admin")
	UserRoleUser  = enum.New[UserRole](2, "user")
)

Functions

func ConfidentialRequirementTypeToGRPC added in v0.4.0

func ConfidentialRequirementTypeToGRPC(req ConfidentialRequirementType) dto.OAuth2ClientConfidentialRequirement

Types

type ConfidentialRequirementType added in v0.4.0

type ConfidentialRequirementType int
const (
	CRTRequire ConfidentialRequirementType = iota
	CRTNotRequire
	CRTDependOnType
)

func ConfidentialRequirementTypeFromGRPC added in v0.4.0

func ConfidentialRequirementTypeFromGRPC(req dto.OAuth2ClientConfidentialRequirement) ConfidentialRequirementType

type UserRole

type UserRole int

Jump to

Keyboard shortcuts

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