Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetId() uint64
- func (x *Account) GetRight() AccountRight
- func (x *Account) GetUsername() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountRight
- func (AccountRight) Descriptor() protoreflect.EnumDescriptor
- func (x AccountRight) Enum() *AccountRight
- func (AccountRight) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountRight) Number() protoreflect.EnumNumber
- func (x AccountRight) String() string
- func (AccountRight) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountRight_name = map[int32]string{ 0: "ACCOUNT_RIGHT_UNSPECIFIED", 1: "ACCOUNT_RIGHT_READ", 2: "ACCOUNT_RIGHT_READ_WRITE", 3: "ACCOUNT_RIGHT_ADMIN", } AccountRight_value = map[string]int32{ "ACCOUNT_RIGHT_UNSPECIFIED": 0, "ACCOUNT_RIGHT_READ": 1, "ACCOUNT_RIGHT_READ_WRITE": 2, "ACCOUNT_RIGHT_ADMIN": 3, } )
Enum value maps for AccountRight.
View Source
var File_account_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Right AccountRight `protobuf:"varint,3,opt,name=right,proto3,enum=AccountRight" json:"right,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetRight ¶
func (x *Account) GetRight() AccountRight
func (*Account) GetUsername ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountRight ¶
type AccountRight int32
const ( AccountRight_ACCOUNT_RIGHT_UNSPECIFIED AccountRight = 0 AccountRight_ACCOUNT_RIGHT_READ AccountRight = 1 AccountRight_ACCOUNT_RIGHT_READ_WRITE AccountRight = 2 AccountRight_ACCOUNT_RIGHT_ADMIN AccountRight = 3 )
func (AccountRight) Descriptor ¶
func (AccountRight) Descriptor() protoreflect.EnumDescriptor
func (AccountRight) Enum ¶
func (x AccountRight) Enum() *AccountRight
func (AccountRight) EnumDescriptor
deprecated
func (AccountRight) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountRight.Descriptor instead.
func (AccountRight) Number ¶
func (x AccountRight) Number() protoreflect.EnumNumber
func (AccountRight) String ¶
func (x AccountRight) String() string
func (AccountRight) Type ¶
func (AccountRight) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.