Documentation ¶
Index ¶
- Variables
- type ErrDetail
- func (*ErrDetail) Descriptor() ([]byte, []int)
- func (m *ErrDetail) GetKey() string
- func (m *ErrDetail) GetMsg() string
- func (m *ErrDetail) Marshal() (dAtA []byte, err error)
- func (m *ErrDetail) MarshalTo(dAtA []byte) (int, error)
- func (m *ErrDetail) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ErrDetail) ProtoMessage()
- func (m *ErrDetail) Reset()
- func (m *ErrDetail) Size() (n int)
- func (m *ErrDetail) String() string
- func (m *ErrDetail) Unmarshal(dAtA []byte) error
- func (m *ErrDetail) XXX_DiscardUnknown()
- func (m *ErrDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrDetail) XXX_Merge(src proto.Message)
- func (m *ErrDetail) XXX_Size() int
- func (m *ErrDetail) XXX_Unmarshal(b []byte) error
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthErrDetail = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowErrDetail = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupErrDetail = fmt.Errorf("proto: unexpected end of group") )
View Source
var E_Code = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.EnumValueOptions)(nil), ExtensionType: (*int32)(nil), Field: 1109, Name: "proto.code", Tag: "varint,1109,opt,name=code", Filename: "07_grpc_error/proto/err.proto", }
View Source
var E_DefaultCode = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.EnumOptions)(nil), ExtensionType: (*int32)(nil), Field: 1108, Name: "proto.default_code", Tag: "varint,1108,opt,name=default_code", Filename: "07_grpc_error/proto/err.proto", }
View Source
var Error_name = map[int32]string{
0: "RESOURCE_ERR_UNKNOWN",
101: "RESOURCE_ERR_NOT_FOUND",
102: "RESOURCE_ERR_LIST_MYSQL",
103: "RESOURCE_ERR_INFO_MYSQL",
}
View Source
var Error_value = map[string]int32{
"RESOURCE_ERR_UNKNOWN": 0,
"RESOURCE_ERR_NOT_FOUND": 101,
"RESOURCE_ERR_LIST_MYSQL": 102,
"RESOURCE_ERR_INFO_MYSQL": 103,
}
Functions ¶
This section is empty.
Types ¶
type ErrDetail ¶
type ErrDetail struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ErrDetail) Descriptor ¶
func (*ErrDetail) MarshalToSizedBuffer ¶
func (*ErrDetail) ProtoMessage ¶
func (*ErrDetail) ProtoMessage()
func (*ErrDetail) XXX_DiscardUnknown ¶
func (m *ErrDetail) XXX_DiscardUnknown()
func (*ErrDetail) XXX_Marshal ¶
func (*ErrDetail) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.