Documentation ¶
Index ¶
- Variables
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type Msg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorReason_name = map[int32]string{ 0: "SUCCEED", 1: "FAILED", } ErrorReason_value = map[string]int32{ "SUCCEED": 0, "FAILED": 1, } )
Enum value maps for ErrorReason.
View Source
var File_api_common_error_reason_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_SUCCEED ErrorReason = 0 ErrorReason_FAILED ErrorReason = 1 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type Msg ¶
type Msg struct { Reason ErrorReason `protobuf:"varint,1,opt,name=Reason,proto3,enum=common.ErrorReason" json:"Reason,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*Msg) Descriptor
deprecated
func (*Msg) GetMessage ¶
func (*Msg) GetReason ¶
func (x *Msg) GetReason() ErrorReason
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶
func (x *Msg) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.