permissions

package
v0.0.0-...-f15a7a6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_NONE",
		1: "ROLE_OWNER",
		2: "ROLE_ADMIN",
		3: "ROLE_MEMBER",
		4: "ROLE_GUEST",
	}
	Role_value = map[string]int32{
		"ROLE_NONE":   0,
		"ROLE_OWNER":  1,
		"ROLE_ADMIN":  2,
		"ROLE_MEMBER": 3,
		"ROLE_GUEST":  4,
	}
)

Enum value maps for Role.

View Source
var (
	// optional permissions.Role role = 50000;
	E_Role = &file_example_permissions_permissions_proto_extTypes[0]
	// optional string scope = 50001;
	E_Scope = &file_example_permissions_permissions_proto_extTypes[1]
	// optional int32 test = 50002;
	E_Test = &file_example_permissions_permissions_proto_extTypes[2]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_example_permissions_permissions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Role

type Role int32
const (
	Role_ROLE_NONE   Role = 0
	Role_ROLE_OWNER  Role = 1
	Role_ROLE_ADMIN  Role = 2
	Role_ROLE_MEMBER Role = 3
	Role_ROLE_GUEST  Role = 4
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

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

Deprecated: Use Role.Descriptor instead.

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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