Documentation
¶
Index ¶
- Variables
- type AuthType
- type CMD
- type ProtoId
- type ProtoIdRule
- type ServiceName
- func (ServiceName) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceName) Enum() *ServiceName
- func (ServiceName) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceName) Number() protoreflect.EnumNumber
- func (x ServiceName) String() string
- func (ServiceName) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CMD_name = map[int32]string{ 0: "INVALID", 1: "GreeterHello", } CMD_value = map[string]int32{ "INVALID": 0, "GreeterHello": 1, } )
Enum value maps for CMD.
View Source
var ( AuthType_name = map[int32]string{ 0: "AuthNone", 1: "JwtAuthToken", 2: "AuthManager", } AuthType_value = map[string]int32{ "AuthNone": 0, "JwtAuthToken": 1, "AuthManager": 2, } )
Enum value maps for AuthType.
View Source
var ( ServiceName_name = map[int32]string{ 0: "ServerNone", 1: "ServerGate", 2: "ServiceLogin", 3: "ServiceLogic", } ServiceName_value = map[string]int32{ "ServerNone": 0, "ServerGate": 1, "ServiceLogin": 2, "ServiceLogic": 3, } )
Enum value maps for ServiceName.
View Source
var ( // See `ProtoIdRule` // // optional extend.ProtoIdRule id = 1001; E_Id = &file_extend_proto_extTypes[0] // 若 auth_method 定义则优先使用,否则使用 service 的定义 // // optional extend.AuthType auth_method = 1002; E_AuthMethod = &file_extend_proto_extTypes[1] )
Extension fields to descriptor.MethodOptions.
View Source
var ( // optional extend.AuthType auth_service = 1002; E_AuthService = &file_extend_proto_extTypes[2] // optional extend.ServiceName service_name = 1004; E_ServiceName = &file_extend_proto_extTypes[3] )
Extension fields to descriptor.ServiceOptions.
View Source
var File_cmd_proto protoreflect.FileDescriptor
View Source
var File_extend_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthType ¶
type AuthType int32
鉴权类型
func (AuthType) Descriptor ¶
func (AuthType) Descriptor() protoreflect.EnumDescriptor
func (AuthType) EnumDescriptor
deprecated
func (AuthType) Number ¶
func (x AuthType) Number() protoreflect.EnumNumber
func (AuthType) Type ¶
func (AuthType) Type() protoreflect.EnumType
type CMD ¶
type CMD int32
func (CMD) Descriptor ¶
func (CMD) Descriptor() protoreflect.EnumDescriptor
func (CMD) EnumDescriptor
deprecated
func (CMD) Number ¶
func (x CMD) Number() protoreflect.EnumNumber
func (CMD) Type ¶
func (CMD) Type() protoreflect.EnumType
type ProtoId ¶
type ProtoId struct {
Rules []*ProtoIdRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoId) Descriptor
deprecated
func (*ProtoId) GetRules ¶
func (x *ProtoId) GetRules() []*ProtoIdRule
func (*ProtoId) ProtoMessage ¶
func (*ProtoId) ProtoMessage()
func (*ProtoId) ProtoReflect ¶
func (x *ProtoId) ProtoReflect() protoreflect.Message
type ProtoIdRule ¶
type ProtoIdRule struct {
Cmd CMD `protobuf:"varint,1,opt,name=cmd,proto3,enum=CMD" json:"cmd,omitempty"`
// contains filtered or unexported fields
}
func (*ProtoIdRule) Descriptor
deprecated
func (*ProtoIdRule) Descriptor() ([]byte, []int)
Deprecated: Use ProtoIdRule.ProtoReflect.Descriptor instead.
func (*ProtoIdRule) GetCmd ¶
func (x *ProtoIdRule) GetCmd() CMD
func (*ProtoIdRule) ProtoMessage ¶
func (*ProtoIdRule) ProtoMessage()
func (*ProtoIdRule) ProtoReflect ¶
func (x *ProtoIdRule) ProtoReflect() protoreflect.Message
func (*ProtoIdRule) Reset ¶
func (x *ProtoIdRule) Reset()
func (*ProtoIdRule) String ¶
func (x *ProtoIdRule) String() string
type ServiceName ¶
type ServiceName int32
const ( ServiceName_ServerNone ServiceName = 0 ServiceName_ServerGate ServiceName = 1 ServiceName_ServiceLogin ServiceName = 2 ServiceName_ServiceLogic ServiceName = 3 )
func (ServiceName) Descriptor ¶
func (ServiceName) Descriptor() protoreflect.EnumDescriptor
func (ServiceName) Enum ¶
func (x ServiceName) Enum() *ServiceName
func (ServiceName) EnumDescriptor
deprecated
func (ServiceName) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceName.Descriptor instead.
func (ServiceName) Number ¶
func (x ServiceName) Number() protoreflect.EnumNumber
func (ServiceName) String ¶
func (x ServiceName) String() string
func (ServiceName) Type ¶
func (ServiceName) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.