permission

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Subject_name = map[int32]string{
		0:     "NONE",
		1:     "GUEST",
		8:     "WEB",
		64:    "PC",
		512:   "MOBILE",
		584:   "LOGGED_IN",
		585:   "CLIENT",
		4096:  "SERVER",
		65535: "ANY",
	}
	Subject_value = map[string]int32{
		"NONE":      0,
		"GUEST":     1,
		"WEB":       8,
		"PC":        64,
		"MOBILE":    512,
		"LOGGED_IN": 584,
		"CLIENT":    585,
		"SERVER":    4096,
		"ANY":       65535,
	}
)

Enum value maps for Subject.

View Source
var (
	VisibleScope_name = map[int32]string{
		0:     "CLIENT",
		256:   "SERVER",
		65535: "ALL",
	}
	VisibleScope_value = map[string]int32{
		"CLIENT": 0,
		"SERVER": 256,
		"ALL":    65535,
	}
)

Enum value maps for VisibleScope.

View Source
var (
	// ID assigned by protobuf-global-extension-registry@google.com for grpc-gateway project.
	//
	// All IDs are the same, as assigned. It is okay that they are the same, as they extend
	// different descriptor messages.
	//
	// repeated appootb.permission.method.Subject required = 2507;
	E_Required = &file_method_proto_extTypes[0] // Required token subjects
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// repeated string roles = 4507;
	E_Roles = &file_policy_proto_extTypes[0] // Required roles
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// optional appootb.permission.service.VisibleScope visible = 1507;
	E_Visible = &file_service_proto_extTypes[0] // Service option
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_method_proto protoreflect.FileDescriptor
View Source
var File_policy_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Subject

type Subject int32

Method token subject.

const (
	Subject_NONE      Subject = 0     // Public access, no token required [Default]
	Subject_GUEST     Subject = 1     // Guest token, generated by client locally
	Subject_WEB       Subject = 8     // Web token, signed for h5, web
	Subject_PC        Subject = 64    // PC token, signed for MacOS, Windows or Linux app
	Subject_MOBILE    Subject = 512   // Mobile token, signed for native mobile app
	Subject_LOGGED_IN Subject = 584   // Logged-in token, WEB | PC | MOBILE
	Subject_CLIENT    Subject = 585   // Client token, GUEST | WEB | PC | MOBILE
	Subject_SERVER    Subject = 4096  // Server token, signed for server usage
	Subject_ANY       Subject = 65535 // Any token
)

func (Subject) Descriptor

func (Subject) Descriptor() protoreflect.EnumDescriptor

func (Subject) Enum

func (x Subject) Enum() *Subject

func (Subject) EnumDescriptor deprecated

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

Deprecated: Use Subject.Descriptor instead.

func (Subject) Number

func (x Subject) Number() protoreflect.EnumNumber

func (Subject) String

func (x Subject) String() string

func (Subject) Type

func (Subject) Type() protoreflect.EnumType

type VisibleScope

type VisibleScope int32

Service visible scope.

const (
	VisibleScope_CLIENT VisibleScope = 0     // Client visible scope [Default]
	VisibleScope_SERVER VisibleScope = 256   // Server visible scope
	VisibleScope_ALL    VisibleScope = 65535 // All scopes
)

func (VisibleScope) Descriptor

func (VisibleScope) Enum

func (x VisibleScope) Enum() *VisibleScope

func (VisibleScope) EnumDescriptor deprecated

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

Deprecated: Use VisibleScope.Descriptor instead.

func (VisibleScope) Number

func (VisibleScope) String

func (x VisibleScope) String() string

func (VisibleScope) Type

Jump to

Keyboard shortcuts

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