Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorCode_name = map[int32]string{ 0: "CannotSend", 1: "PayloadError", 2: "InterceptorError", 3: "ApplicationError", } ErrorCode_value = map[string]int32{ "CannotSend": 0, "PayloadError": 1, "InterceptorError": 2, "ApplicationError": 3, } )
Enum value maps for ErrorCode.
View Source
var File_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code ErrorCode `protobuf:"varint,1,opt,name=Code,proto3,enum=common.ErrorCode" json:"Code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorCode ¶
type ErrorCode int32
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.