permission

package
v0.0.0-...-d74b047 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var E_Token = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.MethodOptions)(nil),
	ExtensionType: (*Token)(nil),
	Field:         2507,
	Name:          "appootb.permission.method.token",
	Tag:           "bytes,2507,opt,name=token",
	Filename:      "appootb/permission/method.proto",
}
View Source
var E_Visible = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.ServiceOptions)(nil),
	ExtensionType: (*ServiceVisible)(nil),
	Field:         1507,
	Name:          "appootb.permission.service.visible",
	Tag:           "bytes,1507,opt,name=visible",
	Filename:      "appootb/permission/service.proto",
}
View Source
var TokenLevel_name = map[int32]string{
	0:   "NONE_TOKEN",
	100: "LOW_TOKEN",
	200: "MIDDLE_TOKEN",
	300: "HIGH_TOKEN",
	999: "INNER_TOKEN",
}
View Source
var TokenLevel_value = map[string]int32{
	"NONE_TOKEN":   0,
	"LOW_TOKEN":    100,
	"MIDDLE_TOKEN": 200,
	"HIGH_TOKEN":   300,
	"INNER_TOKEN":  999,
}
View Source
var VisibleScope_name = map[int32]string{
	0:   "PUBLIC_SCOPE",
	100: "INNER_SCOPE",
	200: "ALL_SCOPE",
}
View Source
var VisibleScope_value = map[string]int32{
	"PUBLIC_SCOPE": 0,
	"INNER_SCOPE":  100,
	"ALL_SCOPE":    200,
}

Functions

This section is empty.

Types

type ServiceVisible

type ServiceVisible struct {
	Scope                VisibleScope `protobuf:"varint,1,opt,name=scope,proto3,enum=appootb.permission.service.VisibleScope" json:"scope,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Service visible.

func (*ServiceVisible) Descriptor

func (*ServiceVisible) Descriptor() ([]byte, []int)

func (*ServiceVisible) GetScope

func (m *ServiceVisible) GetScope() VisibleScope

func (*ServiceVisible) ProtoMessage

func (*ServiceVisible) ProtoMessage()

func (*ServiceVisible) Reset

func (m *ServiceVisible) Reset()

func (*ServiceVisible) String

func (m *ServiceVisible) String() string

func (*ServiceVisible) XXX_DiscardUnknown

func (m *ServiceVisible) XXX_DiscardUnknown()

func (*ServiceVisible) XXX_Marshal

func (m *ServiceVisible) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceVisible) XXX_Merge

func (m *ServiceVisible) XXX_Merge(src proto.Message)

func (*ServiceVisible) XXX_Size

func (m *ServiceVisible) XXX_Size() int

func (*ServiceVisible) XXX_Unmarshal

func (m *ServiceVisible) XXX_Unmarshal(b []byte) error

type Token

type Token struct {
	Required             TokenLevel `protobuf:"varint,1,opt,name=required,proto3,enum=appootb.permission.method.TokenLevel" json:"required,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Method token.

func (*Token) Descriptor

func (*Token) Descriptor() ([]byte, []int)

func (*Token) GetRequired

func (m *Token) GetRequired() TokenLevel

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Token) XXX_Merge

func (m *Token) XXX_Merge(src proto.Message)

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

func (m *Token) XXX_Unmarshal(b []byte) error

type TokenLevel

type TokenLevel int32

Method token level.

const (
	TokenLevel_NONE_TOKEN   TokenLevel = 0
	TokenLevel_LOW_TOKEN    TokenLevel = 100
	TokenLevel_MIDDLE_TOKEN TokenLevel = 200
	TokenLevel_HIGH_TOKEN   TokenLevel = 300
	TokenLevel_INNER_TOKEN  TokenLevel = 999
)

func (TokenLevel) EnumDescriptor

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

func (TokenLevel) String

func (x TokenLevel) String() string

type VisibleScope

type VisibleScope int32

Service visible scope.

const (
	VisibleScope_PUBLIC_SCOPE VisibleScope = 0
	VisibleScope_INNER_SCOPE  VisibleScope = 100
	VisibleScope_ALL_SCOPE    VisibleScope = 200
)

func (VisibleScope) EnumDescriptor

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

func (VisibleScope) String

func (x VisibleScope) String() string

Jump to

Keyboard shortcuts

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