Documentation ¶
Index ¶
- Variables
- func GetGrpcCode(err error) codes.Code
- func WrapWithGrpcCode(err error, code codes.Code) error
- type EncodedGrpcCode
- func (*EncodedGrpcCode) Descriptor() ([]byte, []int)
- func (m *EncodedGrpcCode) Marshal() (dAtA []byte, err error)
- func (m *EncodedGrpcCode) MarshalTo(dAtA []byte) (int, error)
- func (m *EncodedGrpcCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncodedGrpcCode) ProtoMessage()
- func (m *EncodedGrpcCode) Reset()
- func (m *EncodedGrpcCode) Size() (n int)
- func (m *EncodedGrpcCode) String() string
- func (m *EncodedGrpcCode) Unmarshal(dAtA []byte) error
- func (m *EncodedGrpcCode) XXX_DiscardUnknown()
- func (m *EncodedGrpcCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodedGrpcCode) XXX_Merge(src proto.Message)
- func (m *EncodedGrpcCode) XXX_Size() int
- func (m *EncodedGrpcCode) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetGrpcCode ¶
GetGrpcCode retrieves the gRPC code from a stack of causes.
Types ¶
type EncodedGrpcCode ¶
type EncodedGrpcCode struct {
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
}
func (*EncodedGrpcCode) Descriptor ¶
func (*EncodedGrpcCode) Descriptor() ([]byte, []int)
func (*EncodedGrpcCode) Marshal ¶
func (m *EncodedGrpcCode) Marshal() (dAtA []byte, err error)
func (*EncodedGrpcCode) MarshalToSizedBuffer ¶
func (m *EncodedGrpcCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedGrpcCode) ProtoMessage ¶
func (*EncodedGrpcCode) ProtoMessage()
func (*EncodedGrpcCode) Reset ¶
func (m *EncodedGrpcCode) Reset()
func (*EncodedGrpcCode) Size ¶
func (m *EncodedGrpcCode) Size() (n int)
func (*EncodedGrpcCode) String ¶
func (m *EncodedGrpcCode) String() string
func (*EncodedGrpcCode) Unmarshal ¶
func (m *EncodedGrpcCode) Unmarshal(dAtA []byte) error
func (*EncodedGrpcCode) XXX_DiscardUnknown ¶
func (m *EncodedGrpcCode) XXX_DiscardUnknown()
func (*EncodedGrpcCode) XXX_Marshal ¶
func (m *EncodedGrpcCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodedGrpcCode) XXX_Merge ¶
func (m *EncodedGrpcCode) XXX_Merge(src proto.Message)
func (*EncodedGrpcCode) XXX_Size ¶
func (m *EncodedGrpcCode) XXX_Size() int
func (*EncodedGrpcCode) XXX_Unmarshal ¶
func (m *EncodedGrpcCode) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.