types

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserType_name = map[int32]string{
		0: "SUB",
		1: "PRIMARY",
		2: "SUPPER",
		3: "INTERNAL",
		4: "DOMAIN_ADMIN",
		5: "ORG_ADMIN",
		6: "PERM_ADMIN",
		7: "AUDIT_ADMIN",
	}
	UserType_value = map[string]int32{
		"SUB":          0,
		"PRIMARY":      1,
		"SUPPER":       2,
		"INTERNAL":     3,
		"DOMAIN_ADMIN": 4,
		"ORG_ADMIN":    5,
		"PERM_ADMIN":   6,
		"AUDIT_ADMIN":  7,
	}
)

Enum value maps for UserType.

View Source
var File_pkg_user_pb_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type UserType added in v0.2.0

type UserType int32
const (
	UserType_SUB          UserType = 0
	UserType_PRIMARY      UserType = 1
	UserType_SUPPER       UserType = 2
	UserType_INTERNAL     UserType = 3
	UserType_DOMAIN_ADMIN UserType = 4
	UserType_ORG_ADMIN    UserType = 5
	UserType_PERM_ADMIN   UserType = 6
	UserType_AUDIT_ADMIN  UserType = 7
)

func ParseUserTypeFromString added in v0.2.0

func ParseUserTypeFromString(str string) (UserType, error)

ParseUserTypeFromString Parse UserType from string

func (UserType) Descriptor added in v0.2.0

func (UserType) Descriptor() protoreflect.EnumDescriptor

func (UserType) Enum added in v0.2.0

func (x UserType) Enum() *UserType

func (UserType) EnumDescriptor deprecated added in v0.2.0

func (UserType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserType.Descriptor instead.

func (UserType) Equal added in v0.2.0

func (t UserType) Equal(target UserType) bool

Equal type compare

func (UserType) IsIn added in v0.2.0

func (t UserType) IsIn(targets ...UserType) bool

IsIn todo

func (UserType) MarshalJSON added in v0.2.0

func (t UserType) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (UserType) Number added in v0.2.0

func (x UserType) Number() protoreflect.EnumNumber

func (UserType) String added in v0.2.0

func (x UserType) String() string

func (UserType) Type added in v0.2.0

func (*UserType) UnmarshalJSON added in v0.2.0

func (t *UserType) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

Jump to

Keyboard shortcuts

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