Documentation ¶
Index ¶
- Variables
- type EncodedError
- func (*EncodedError) Descriptor() ([]byte, []int)
- func (m *EncodedError) GetError() isEncodedError_Error
- func (m *EncodedError) GetLeaf() *EncodedErrorLeaf
- func (m *EncodedError) GetWrapper() *EncodedWrapper
- func (m *EncodedError) IsSet() bool
- func (m *EncodedError) Marshal() (dAtA []byte, err error)
- func (m *EncodedError) MarshalTo(dAtA []byte) (int, error)
- func (m *EncodedError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncodedError) ProtoMessage()
- func (m *EncodedError) Reset()
- func (m *EncodedError) Size() (n int)
- func (m *EncodedError) String() string
- func (m *EncodedError) Unmarshal(dAtA []byte) error
- func (m *EncodedError) XXX_DiscardUnknown()
- func (m *EncodedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodedError) XXX_Merge(src proto.Message)
- func (*EncodedError) XXX_OneofWrappers() []interface{}
- func (m *EncodedError) XXX_Size() int
- func (m *EncodedError) XXX_Unmarshal(b []byte) error
- type EncodedErrorDetails
- func (*EncodedErrorDetails) Descriptor() ([]byte, []int)
- func (m *EncodedErrorDetails) Marshal() (dAtA []byte, err error)
- func (m *EncodedErrorDetails) MarshalTo(dAtA []byte) (int, error)
- func (m *EncodedErrorDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncodedErrorDetails) ProtoMessage()
- func (m *EncodedErrorDetails) Reset()
- func (m *EncodedErrorDetails) Size() (n int)
- func (m *EncodedErrorDetails) String() string
- func (m *EncodedErrorDetails) Unmarshal(dAtA []byte) error
- func (m *EncodedErrorDetails) XXX_DiscardUnknown()
- func (m *EncodedErrorDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodedErrorDetails) XXX_Merge(src proto.Message)
- func (m *EncodedErrorDetails) XXX_Size() int
- func (m *EncodedErrorDetails) XXX_Unmarshal(b []byte) error
- type EncodedErrorLeaf
- func (*EncodedErrorLeaf) Descriptor() ([]byte, []int)
- func (m *EncodedErrorLeaf) Marshal() (dAtA []byte, err error)
- func (m *EncodedErrorLeaf) MarshalTo(dAtA []byte) (int, error)
- func (m *EncodedErrorLeaf) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncodedErrorLeaf) ProtoMessage()
- func (m *EncodedErrorLeaf) Reset()
- func (m *EncodedErrorLeaf) Size() (n int)
- func (m *EncodedErrorLeaf) String() string
- func (m *EncodedErrorLeaf) Unmarshal(dAtA []byte) error
- func (m *EncodedErrorLeaf) XXX_DiscardUnknown()
- func (m *EncodedErrorLeaf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodedErrorLeaf) XXX_Merge(src proto.Message)
- func (m *EncodedErrorLeaf) XXX_Size() int
- func (m *EncodedErrorLeaf) XXX_Unmarshal(b []byte) error
- type EncodedError_Leaf
- type EncodedError_Wrapper
- type EncodedWrapper
- func (*EncodedWrapper) Descriptor() ([]byte, []int)
- func (m *EncodedWrapper) Marshal() (dAtA []byte, err error)
- func (m *EncodedWrapper) MarshalTo(dAtA []byte) (int, error)
- func (m *EncodedWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EncodedWrapper) ProtoMessage()
- func (m *EncodedWrapper) Reset()
- func (m *EncodedWrapper) Size() (n int)
- func (m *EncodedWrapper) String() string
- func (m *EncodedWrapper) Unmarshal(dAtA []byte) error
- func (m *EncodedWrapper) XXX_DiscardUnknown()
- func (m *EncodedWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncodedWrapper) XXX_Merge(src proto.Message)
- func (m *EncodedWrapper) XXX_Size() int
- func (m *EncodedWrapper) XXX_Unmarshal(b []byte) error
- type ErrnoPayload
- func (*ErrnoPayload) Descriptor() ([]byte, []int)
- func (m *ErrnoPayload) Marshal() (dAtA []byte, err error)
- func (m *ErrnoPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *ErrnoPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ErrnoPayload) ProtoMessage()
- func (m *ErrnoPayload) Reset()
- func (m *ErrnoPayload) Size() (n int)
- func (m *ErrnoPayload) String() string
- func (m *ErrnoPayload) Unmarshal(dAtA []byte) error
- func (m *ErrnoPayload) XXX_DiscardUnknown()
- func (m *ErrnoPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrnoPayload) XXX_Merge(src proto.Message)
- func (m *ErrnoPayload) XXX_Size() int
- func (m *ErrnoPayload) XXX_Unmarshal(b []byte) error
- type ErrorTypeMark
- func (*ErrorTypeMark) Descriptor() ([]byte, []int)
- func (m ErrorTypeMark) Equals(o ErrorTypeMark) bool
- func (m *ErrorTypeMark) Marshal() (dAtA []byte, err error)
- func (m *ErrorTypeMark) MarshalTo(dAtA []byte) (int, error)
- func (m *ErrorTypeMark) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ErrorTypeMark) ProtoMessage()
- func (m *ErrorTypeMark) Reset()
- func (m *ErrorTypeMark) Size() (n int)
- func (m *ErrorTypeMark) String() string
- func (m *ErrorTypeMark) Unmarshal(dAtA []byte) error
- func (m *ErrorTypeMark) XXX_DiscardUnknown()
- func (m *ErrorTypeMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorTypeMark) XXX_Merge(src proto.Message)
- func (m *ErrorTypeMark) XXX_Size() int
- func (m *ErrorTypeMark) XXX_Unmarshal(b []byte) error
- type MarkPayload
- func (*MarkPayload) Descriptor() ([]byte, []int)
- func (m *MarkPayload) Marshal() (dAtA []byte, err error)
- func (m *MarkPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MarkPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarkPayload) ProtoMessage()
- func (m *MarkPayload) Reset()
- func (m *MarkPayload) Size() (n int)
- func (m *MarkPayload) String() string
- func (m *MarkPayload) Unmarshal(dAtA []byte) error
- func (m *MarkPayload) XXX_DiscardUnknown()
- func (m *MarkPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarkPayload) XXX_Merge(src proto.Message)
- func (m *MarkPayload) XXX_Size() int
- func (m *MarkPayload) XXX_Unmarshal(b []byte) error
- type MessageType
- type StringPayload
- func (*StringPayload) Descriptor() ([]byte, []int)
- func (m *StringPayload) Marshal() (dAtA []byte, err error)
- func (m *StringPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *StringPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StringPayload) ProtoMessage()
- func (m *StringPayload) Reset()
- func (m *StringPayload) Size() (n int)
- func (m *StringPayload) String() string
- func (m *StringPayload) Unmarshal(dAtA []byte) error
- func (m *StringPayload) XXX_DiscardUnknown()
- func (m *StringPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringPayload) XXX_Merge(src proto.Message)
- func (m *StringPayload) XXX_Size() int
- func (m *StringPayload) XXX_Unmarshal(b []byte) error
- type StringsPayload
- func (*StringsPayload) Descriptor() ([]byte, []int)
- func (m *StringsPayload) Marshal() (dAtA []byte, err error)
- func (m *StringsPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *StringsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StringsPayload) ProtoMessage()
- func (m *StringsPayload) Reset()
- func (m *StringsPayload) Size() (n int)
- func (m *StringsPayload) String() string
- func (m *StringsPayload) Unmarshal(dAtA []byte) error
- func (m *StringsPayload) XXX_DiscardUnknown()
- func (m *StringsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StringsPayload) XXX_Merge(src proto.Message)
- func (m *StringsPayload) XXX_Size() int
- func (m *StringsPayload) XXX_Unmarshal(b []byte) error
- type TagPayload
- func (*TagPayload) Descriptor() ([]byte, []int)
- func (m *TagPayload) Marshal() (dAtA []byte, err error)
- func (m *TagPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *TagPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TagPayload) ProtoMessage()
- func (m *TagPayload) Reset()
- func (m *TagPayload) Size() (n int)
- func (m *TagPayload) String() string
- func (m *TagPayload) Unmarshal(dAtA []byte) error
- func (m *TagPayload) XXX_DiscardUnknown()
- func (m *TagPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagPayload) XXX_Merge(src proto.Message)
- func (m *TagPayload) XXX_Size() int
- func (m *TagPayload) XXX_Unmarshal(b []byte) error
- type TagsPayload
- func (*TagsPayload) Descriptor() ([]byte, []int)
- func (m *TagsPayload) Marshal() (dAtA []byte, err error)
- func (m *TagsPayload) MarshalTo(dAtA []byte) (int, error)
- func (m *TagsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TagsPayload) ProtoMessage()
- func (m *TagsPayload) Reset()
- func (m *TagsPayload) Size() (n int)
- func (m *TagsPayload) String() string
- func (m *TagsPayload) Unmarshal(dAtA []byte) error
- func (m *TagsPayload) XXX_DiscardUnknown()
- func (m *TagsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagsPayload) XXX_Merge(src proto.Message)
- func (m *TagsPayload) XXX_Size() int
- func (m *TagsPayload) XXX_Unmarshal(b []byte) error
- type TestError
- func (*TestError) Descriptor() ([]byte, []int)
- func (t *TestError) Error() string
- func (m *TestError) Marshal() (dAtA []byte, err error)
- func (m *TestError) MarshalTo(dAtA []byte) (int, error)
- func (m *TestError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TestError) ProtoMessage()
- func (m *TestError) Reset()
- func (m *TestError) Size() (n int)
- func (m *TestError) String() string
- func (m *TestError) Unmarshal(dAtA []byte) error
- func (m *TestError) XXX_DiscardUnknown()
- func (m *TestError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TestError) XXX_Merge(src proto.Message)
- func (m *TestError) XXX_Size() int
- func (m *TestError) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupErrors = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthHintdetail = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHintdetail = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHintdetail = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMarkers = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMarkers = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMarkers = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTags = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTags = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTags = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTesting = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTesting = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTesting = fmt.Errorf("proto: unexpected end of group") )
var MessageType_name = map[int32]string{
0: "PREFIX",
1: "FULL_MESSAGE",
}
var MessageType_value = map[string]int32{
"PREFIX": 0,
"FULL_MESSAGE": 1,
}
Functions ¶
This section is empty.
Types ¶
type EncodedError ¶
type EncodedError struct { // Types that are valid to be assigned to Error: // // *EncodedError_Leaf // *EncodedError_Wrapper Error isEncodedError_Error `protobuf_oneof:"error"` }
EncodedError is the wire-encodable representation of an error (or error cause chain).
func (*EncodedError) Descriptor ¶
func (*EncodedError) Descriptor() ([]byte, []int)
func (*EncodedError) GetError ¶
func (m *EncodedError) GetError() isEncodedError_Error
func (*EncodedError) GetLeaf ¶
func (m *EncodedError) GetLeaf() *EncodedErrorLeaf
func (*EncodedError) GetWrapper ¶
func (m *EncodedError) GetWrapper() *EncodedWrapper
func (*EncodedError) IsSet ¶
func (m *EncodedError) IsSet() bool
IsSet returns true if the EncodedError contains an error, or false if it is empty.
func (*EncodedError) Marshal ¶
func (m *EncodedError) Marshal() (dAtA []byte, err error)
func (*EncodedError) MarshalToSizedBuffer ¶
func (m *EncodedError) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedError) ProtoMessage ¶
func (*EncodedError) ProtoMessage()
func (*EncodedError) Reset ¶
func (m *EncodedError) Reset()
func (*EncodedError) Size ¶
func (m *EncodedError) Size() (n int)
func (*EncodedError) String ¶
func (m *EncodedError) String() string
func (*EncodedError) Unmarshal ¶
func (m *EncodedError) Unmarshal(dAtA []byte) error
func (*EncodedError) XXX_DiscardUnknown ¶
func (m *EncodedError) XXX_DiscardUnknown()
func (*EncodedError) XXX_Marshal ¶
func (m *EncodedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodedError) XXX_Merge ¶
func (m *EncodedError) XXX_Merge(src proto.Message)
func (*EncodedError) XXX_OneofWrappers ¶
func (*EncodedError) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*EncodedError) XXX_Size ¶
func (m *EncodedError) XXX_Size() int
func (*EncodedError) XXX_Unmarshal ¶
func (m *EncodedError) XXX_Unmarshal(b []byte) error
type EncodedErrorDetails ¶
type EncodedErrorDetails struct { // The original fully qualified error type name (mandatory). // This is primarily used to print out error details // in error reports and Format(). // // It is additionally used to populate the error mark // below when the family name is not known/set. // See the `markers` error package and the // RFC on error handling for details. OriginalTypeName string `protobuf:"bytes,1,opt,name=original_type_name,json=originalTypeName,proto3" json:"original_type_name,omitempty"` // The error mark. This is used to determine error equivalence and // identifying a decode function. // See the `markers` error package and the // RFC on error handling for details. ErrorTypeMark ErrorTypeMark `protobuf:"bytes,2,opt,name=error_type_mark,json=errorTypeMark,proto3" json:"error_type_mark"` // The reportable payload (optional), which is as descriptive as // possible but may not contain PII. // // This is extracted automatically using a registered encoder, if // any, or the SafeDetailer interface. ReportablePayload []string `protobuf:"bytes,3,rep,name=reportable_payload,json=reportablePayload,proto3" json:"reportable_payload,omitempty"` // An arbitrary payload that (presumably) encodes the // native error object. This is also optional. // // This is extracted automatically using a registered encoder, if // any. FullDetails *types.Any `protobuf:"bytes,4,opt,name=full_details,json=fullDetails,proto3" json:"full_details,omitempty"` }
func (*EncodedErrorDetails) Descriptor ¶
func (*EncodedErrorDetails) Descriptor() ([]byte, []int)
func (*EncodedErrorDetails) Marshal ¶
func (m *EncodedErrorDetails) Marshal() (dAtA []byte, err error)
func (*EncodedErrorDetails) MarshalTo ¶
func (m *EncodedErrorDetails) MarshalTo(dAtA []byte) (int, error)
func (*EncodedErrorDetails) MarshalToSizedBuffer ¶
func (m *EncodedErrorDetails) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedErrorDetails) ProtoMessage ¶
func (*EncodedErrorDetails) ProtoMessage()
func (*EncodedErrorDetails) Reset ¶
func (m *EncodedErrorDetails) Reset()
func (*EncodedErrorDetails) Size ¶
func (m *EncodedErrorDetails) Size() (n int)
func (*EncodedErrorDetails) String ¶
func (m *EncodedErrorDetails) String() string
func (*EncodedErrorDetails) Unmarshal ¶
func (m *EncodedErrorDetails) Unmarshal(dAtA []byte) error
func (*EncodedErrorDetails) XXX_DiscardUnknown ¶
func (m *EncodedErrorDetails) XXX_DiscardUnknown()
func (*EncodedErrorDetails) XXX_Marshal ¶
func (m *EncodedErrorDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodedErrorDetails) XXX_Merge ¶
func (m *EncodedErrorDetails) XXX_Merge(src proto.Message)
func (*EncodedErrorDetails) XXX_Size ¶
func (m *EncodedErrorDetails) XXX_Size() int
func (*EncodedErrorDetails) XXX_Unmarshal ¶
func (m *EncodedErrorDetails) XXX_Unmarshal(b []byte) error
type EncodedErrorLeaf ¶
type EncodedErrorLeaf struct { // The main error message (mandatory), that can be printed to human // users and may contain PII. This contains the value of the leaf // error's Error(), or using a registered encoder. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // The error details. Details EncodedErrorDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details"` // multierror_causes is a list of errors that contain the causal tree // of this leaf. If this field is not empty, then this leaf encodes // an error from go 1.20 or later that encodes multiple causes in its // chain. MultierrorCauses []*EncodedError `protobuf:"bytes,3,rep,name=multierror_causes,json=multierrorCauses,proto3" json:"multierror_causes,omitempty"` }
EncodedErrorLeaf is the wire-encodable representation of an error leaf or a multi-cause wrapper from go 1.20+
func (*EncodedErrorLeaf) Descriptor ¶
func (*EncodedErrorLeaf) Descriptor() ([]byte, []int)
func (*EncodedErrorLeaf) Marshal ¶
func (m *EncodedErrorLeaf) Marshal() (dAtA []byte, err error)
func (*EncodedErrorLeaf) MarshalToSizedBuffer ¶
func (m *EncodedErrorLeaf) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedErrorLeaf) ProtoMessage ¶
func (*EncodedErrorLeaf) ProtoMessage()
func (*EncodedErrorLeaf) Reset ¶
func (m *EncodedErrorLeaf) Reset()
func (*EncodedErrorLeaf) Size ¶
func (m *EncodedErrorLeaf) Size() (n int)
func (*EncodedErrorLeaf) String ¶
func (m *EncodedErrorLeaf) String() string
func (*EncodedErrorLeaf) Unmarshal ¶
func (m *EncodedErrorLeaf) Unmarshal(dAtA []byte) error
func (*EncodedErrorLeaf) XXX_DiscardUnknown ¶
func (m *EncodedErrorLeaf) XXX_DiscardUnknown()
func (*EncodedErrorLeaf) XXX_Marshal ¶
func (m *EncodedErrorLeaf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodedErrorLeaf) XXX_Merge ¶
func (m *EncodedErrorLeaf) XXX_Merge(src proto.Message)
func (*EncodedErrorLeaf) XXX_Size ¶
func (m *EncodedErrorLeaf) XXX_Size() int
func (*EncodedErrorLeaf) XXX_Unmarshal ¶
func (m *EncodedErrorLeaf) XXX_Unmarshal(b []byte) error
type EncodedError_Leaf ¶
type EncodedError_Leaf struct {
Leaf *EncodedErrorLeaf `protobuf:"bytes,1,opt,name=leaf,proto3,oneof" json:"leaf,omitempty"`
}
func (*EncodedError_Leaf) MarshalTo ¶
func (m *EncodedError_Leaf) MarshalTo(dAtA []byte) (int, error)
func (*EncodedError_Leaf) MarshalToSizedBuffer ¶
func (m *EncodedError_Leaf) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedError_Leaf) Size ¶
func (m *EncodedError_Leaf) Size() (n int)
type EncodedError_Wrapper ¶
type EncodedError_Wrapper struct {
Wrapper *EncodedWrapper `protobuf:"bytes,2,opt,name=wrapper,proto3,oneof" json:"wrapper,omitempty"`
}
func (*EncodedError_Wrapper) MarshalTo ¶
func (m *EncodedError_Wrapper) MarshalTo(dAtA []byte) (int, error)
func (*EncodedError_Wrapper) MarshalToSizedBuffer ¶
func (m *EncodedError_Wrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedError_Wrapper) Size ¶
func (m *EncodedError_Wrapper) Size() (n int)
type EncodedWrapper ¶
type EncodedWrapper struct { // The cause error. Mandatory. Cause EncodedError `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause"` // The wrapper message. This could either be a full error message // that can be printed independently, or a (potentially empty) prefix // which is printed before the cause's own message to construct the // full message. This may contain PII. // // This is extracted automatically: // // - for wrappers that have a registered encoder, // - otherwise, when the wrapper's Error() has its cause's Error() as suffix. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // The error details. Details EncodedErrorDetails `protobuf:"bytes,3,opt,name=details,proto3" json:"details"` // message_type encodes the interpretation of `message`. Prior // versions will not set this field and it will be left as `PREFIX`. // This retains backwards compatibility since the new behavior is // only enabled when this enum is set to `FULL_MESSAGE`. MessageType MessageType `` /* 129-byte string literal not displayed */ }
EncodedWrapper is the wire-encodable representation of an error wrapper.
func (*EncodedWrapper) Descriptor ¶
func (*EncodedWrapper) Descriptor() ([]byte, []int)
func (*EncodedWrapper) Marshal ¶
func (m *EncodedWrapper) Marshal() (dAtA []byte, err error)
func (*EncodedWrapper) MarshalToSizedBuffer ¶
func (m *EncodedWrapper) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EncodedWrapper) ProtoMessage ¶
func (*EncodedWrapper) ProtoMessage()
func (*EncodedWrapper) Reset ¶
func (m *EncodedWrapper) Reset()
func (*EncodedWrapper) Size ¶
func (m *EncodedWrapper) Size() (n int)
func (*EncodedWrapper) String ¶
func (m *EncodedWrapper) String() string
func (*EncodedWrapper) Unmarshal ¶
func (m *EncodedWrapper) Unmarshal(dAtA []byte) error
func (*EncodedWrapper) XXX_DiscardUnknown ¶
func (m *EncodedWrapper) XXX_DiscardUnknown()
func (*EncodedWrapper) XXX_Marshal ¶
func (m *EncodedWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncodedWrapper) XXX_Merge ¶
func (m *EncodedWrapper) XXX_Merge(src proto.Message)
func (*EncodedWrapper) XXX_Size ¶
func (m *EncodedWrapper) XXX_Size() int
func (*EncodedWrapper) XXX_Unmarshal ¶
func (m *EncodedWrapper) XXX_Unmarshal(b []byte) error
type ErrnoPayload ¶
type ErrnoPayload struct { // The original errno numeric code. OrigErrno int64 `protobuf:"varint,1,opt,name=orig_errno,json=origErrno,proto3" json:"orig_errno,omitempty"` // The platform where the syscall.Errno was encoded. This // is needed because the numeric values of syscall.Errno // have different meanings depending on the platform. // When decoding, if the arch field does not match we // use a substitute data type instead. Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"` IsPermission bool `protobuf:"varint,3,opt,name=is_permission,json=isPermission,proto3" json:"is_permission,omitempty"` IsExist bool `protobuf:"varint,4,opt,name=is_exist,json=isExist,proto3" json:"is_exist,omitempty"` IsNotExist bool `protobuf:"varint,5,opt,name=is_not_exist,json=isNotExist,proto3" json:"is_not_exist,omitempty"` IsTimeout bool `protobuf:"varint,6,opt,name=is_timeout,json=isTimeout,proto3" json:"is_timeout,omitempty"` IsTemporary bool `protobuf:"varint,7,opt,name=is_temporary,json=isTemporary,proto3" json:"is_temporary,omitempty"` }
ErrnoPayload is used to encode the payload of syscall.Errno errors.
func (*ErrnoPayload) Descriptor ¶
func (*ErrnoPayload) Descriptor() ([]byte, []int)
func (*ErrnoPayload) Marshal ¶
func (m *ErrnoPayload) Marshal() (dAtA []byte, err error)
func (*ErrnoPayload) MarshalToSizedBuffer ¶
func (m *ErrnoPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ErrnoPayload) ProtoMessage ¶
func (*ErrnoPayload) ProtoMessage()
func (*ErrnoPayload) Reset ¶
func (m *ErrnoPayload) Reset()
func (*ErrnoPayload) Size ¶
func (m *ErrnoPayload) Size() (n int)
func (*ErrnoPayload) String ¶
func (m *ErrnoPayload) String() string
func (*ErrnoPayload) Unmarshal ¶
func (m *ErrnoPayload) Unmarshal(dAtA []byte) error
func (*ErrnoPayload) XXX_DiscardUnknown ¶
func (m *ErrnoPayload) XXX_DiscardUnknown()
func (*ErrnoPayload) XXX_Marshal ¶
func (m *ErrnoPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrnoPayload) XXX_Merge ¶
func (m *ErrnoPayload) XXX_Merge(src proto.Message)
func (*ErrnoPayload) XXX_Size ¶
func (m *ErrnoPayload) XXX_Size() int
func (*ErrnoPayload) XXX_Unmarshal ¶
func (m *ErrnoPayload) XXX_Unmarshal(b []byte) error
type ErrorTypeMark ¶
type ErrorTypeMark struct { // The family name identifies the error type. // This is equal to original_type_name above in the common case, but // can be overridden when e.g. the package that defines the type // changes path. // This is the field also used for looking up a decode function. FamilyName string `protobuf:"bytes,1,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` // This marker string is used in combination with // the family name for the purpose of determining error equivalence. // This can be used to separate error instances that have the same type // into separate equivalence classes. // See the `markers` error package and the // RFC on error handling for details. Extension string `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` }
ErrorTypeMark identifies an error type for the purpose of determining error equivalences and looking up decoder functions.
func (*ErrorTypeMark) Descriptor ¶
func (*ErrorTypeMark) Descriptor() ([]byte, []int)
func (ErrorTypeMark) Equals ¶
func (m ErrorTypeMark) Equals(o ErrorTypeMark) bool
func (*ErrorTypeMark) Marshal ¶
func (m *ErrorTypeMark) Marshal() (dAtA []byte, err error)
func (*ErrorTypeMark) MarshalToSizedBuffer ¶
func (m *ErrorTypeMark) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ErrorTypeMark) ProtoMessage ¶
func (*ErrorTypeMark) ProtoMessage()
func (*ErrorTypeMark) Reset ¶
func (m *ErrorTypeMark) Reset()
func (*ErrorTypeMark) Size ¶
func (m *ErrorTypeMark) Size() (n int)
func (*ErrorTypeMark) String ¶
func (m *ErrorTypeMark) String() string
func (*ErrorTypeMark) Unmarshal ¶
func (m *ErrorTypeMark) Unmarshal(dAtA []byte) error
func (*ErrorTypeMark) XXX_DiscardUnknown ¶
func (m *ErrorTypeMark) XXX_DiscardUnknown()
func (*ErrorTypeMark) XXX_Marshal ¶
func (m *ErrorTypeMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorTypeMark) XXX_Merge ¶
func (m *ErrorTypeMark) XXX_Merge(src proto.Message)
func (*ErrorTypeMark) XXX_Size ¶
func (m *ErrorTypeMark) XXX_Size() int
func (*ErrorTypeMark) XXX_Unmarshal ¶
func (m *ErrorTypeMark) XXX_Unmarshal(b []byte) error
type MarkPayload ¶
type MarkPayload struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Types []ErrorTypeMark `protobuf:"bytes,2,rep,name=types,proto3" json:"types"` }
MarkPayload is the error payload for a forced marker. See errors/markers/markers.go and the RFC on error handling for details.
func (*MarkPayload) Descriptor ¶
func (*MarkPayload) Descriptor() ([]byte, []int)
func (*MarkPayload) Marshal ¶
func (m *MarkPayload) Marshal() (dAtA []byte, err error)
func (*MarkPayload) MarshalToSizedBuffer ¶
func (m *MarkPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarkPayload) ProtoMessage ¶
func (*MarkPayload) ProtoMessage()
func (*MarkPayload) Reset ¶
func (m *MarkPayload) Reset()
func (*MarkPayload) Size ¶
func (m *MarkPayload) Size() (n int)
func (*MarkPayload) String ¶
func (m *MarkPayload) String() string
func (*MarkPayload) Unmarshal ¶
func (m *MarkPayload) Unmarshal(dAtA []byte) error
func (*MarkPayload) XXX_DiscardUnknown ¶
func (m *MarkPayload) XXX_DiscardUnknown()
func (*MarkPayload) XXX_Marshal ¶
func (m *MarkPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarkPayload) XXX_Merge ¶
func (m *MarkPayload) XXX_Merge(src proto.Message)
func (*MarkPayload) XXX_Size ¶
func (m *MarkPayload) XXX_Size() int
func (*MarkPayload) XXX_Unmarshal ¶
func (m *MarkPayload) XXX_Unmarshal(b []byte) error
type MessageType ¶
type MessageType int32
MessageType encodes information regarding the interpretation of an error's message string.
const ( // Keeping zero value as default for backwards compatibility. // PREFIX is a message that should be prepended to its cause. MessageType_PREFIX MessageType = 0 // FULL_MESSAGE is a complete error message that can be displayed // without its cause. MessageType_FULL_MESSAGE MessageType = 1 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
type StringPayload ¶
type StringPayload struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (*StringPayload) Descriptor ¶
func (*StringPayload) Descriptor() ([]byte, []int)
func (*StringPayload) Marshal ¶
func (m *StringPayload) Marshal() (dAtA []byte, err error)
func (*StringPayload) MarshalToSizedBuffer ¶
func (m *StringPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StringPayload) ProtoMessage ¶
func (*StringPayload) ProtoMessage()
func (*StringPayload) Reset ¶
func (m *StringPayload) Reset()
func (*StringPayload) Size ¶
func (m *StringPayload) Size() (n int)
func (*StringPayload) String ¶
func (m *StringPayload) String() string
func (*StringPayload) Unmarshal ¶
func (m *StringPayload) Unmarshal(dAtA []byte) error
func (*StringPayload) XXX_DiscardUnknown ¶
func (m *StringPayload) XXX_DiscardUnknown()
func (*StringPayload) XXX_Marshal ¶
func (m *StringPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringPayload) XXX_Merge ¶
func (m *StringPayload) XXX_Merge(src proto.Message)
func (*StringPayload) XXX_Size ¶
func (m *StringPayload) XXX_Size() int
func (*StringPayload) XXX_Unmarshal ¶
func (m *StringPayload) XXX_Unmarshal(b []byte) error
type StringsPayload ¶
type StringsPayload struct {
Details []string `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"`
}
StringsPayload is used to encode the payload of certain error types.
func (*StringsPayload) Descriptor ¶
func (*StringsPayload) Descriptor() ([]byte, []int)
func (*StringsPayload) Marshal ¶
func (m *StringsPayload) Marshal() (dAtA []byte, err error)
func (*StringsPayload) MarshalToSizedBuffer ¶
func (m *StringsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StringsPayload) ProtoMessage ¶
func (*StringsPayload) ProtoMessage()
func (*StringsPayload) Reset ¶
func (m *StringsPayload) Reset()
func (*StringsPayload) Size ¶
func (m *StringsPayload) Size() (n int)
func (*StringsPayload) String ¶
func (m *StringsPayload) String() string
func (*StringsPayload) Unmarshal ¶
func (m *StringsPayload) Unmarshal(dAtA []byte) error
func (*StringsPayload) XXX_DiscardUnknown ¶
func (m *StringsPayload) XXX_DiscardUnknown()
func (*StringsPayload) XXX_Marshal ¶
func (m *StringsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StringsPayload) XXX_Merge ¶
func (m *StringsPayload) XXX_Merge(src proto.Message)
func (*StringsPayload) XXX_Size ¶
func (m *StringsPayload) XXX_Size() int
func (*StringsPayload) XXX_Unmarshal ¶
func (m *StringsPayload) XXX_Unmarshal(b []byte) error
type TagPayload ¶
type TagPayload struct { Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*TagPayload) Descriptor ¶
func (*TagPayload) Descriptor() ([]byte, []int)
func (*TagPayload) Marshal ¶
func (m *TagPayload) Marshal() (dAtA []byte, err error)
func (*TagPayload) MarshalToSizedBuffer ¶
func (m *TagPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TagPayload) ProtoMessage ¶
func (*TagPayload) ProtoMessage()
func (*TagPayload) Reset ¶
func (m *TagPayload) Reset()
func (*TagPayload) Size ¶
func (m *TagPayload) Size() (n int)
func (*TagPayload) String ¶
func (m *TagPayload) String() string
func (*TagPayload) Unmarshal ¶
func (m *TagPayload) Unmarshal(dAtA []byte) error
func (*TagPayload) XXX_DiscardUnknown ¶
func (m *TagPayload) XXX_DiscardUnknown()
func (*TagPayload) XXX_Marshal ¶
func (m *TagPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagPayload) XXX_Merge ¶
func (m *TagPayload) XXX_Merge(src proto.Message)
func (*TagPayload) XXX_Size ¶
func (m *TagPayload) XXX_Size() int
func (*TagPayload) XXX_Unmarshal ¶
func (m *TagPayload) XXX_Unmarshal(b []byte) error
type TagsPayload ¶
type TagsPayload struct {
Tags []TagPayload `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags"`
}
TagsPayload is the error payload for a WithContext marker. See errors/contexttags/withcontext.go and the RFC on error handling for details.
func (*TagsPayload) Descriptor ¶
func (*TagsPayload) Descriptor() ([]byte, []int)
func (*TagsPayload) Marshal ¶
func (m *TagsPayload) Marshal() (dAtA []byte, err error)
func (*TagsPayload) MarshalToSizedBuffer ¶
func (m *TagsPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TagsPayload) ProtoMessage ¶
func (*TagsPayload) ProtoMessage()
func (*TagsPayload) Reset ¶
func (m *TagsPayload) Reset()
func (*TagsPayload) Size ¶
func (m *TagsPayload) Size() (n int)
func (*TagsPayload) String ¶
func (m *TagsPayload) String() string
func (*TagsPayload) Unmarshal ¶
func (m *TagsPayload) Unmarshal(dAtA []byte) error
func (*TagsPayload) XXX_DiscardUnknown ¶
func (m *TagsPayload) XXX_DiscardUnknown()
func (*TagsPayload) XXX_Marshal ¶
func (m *TagsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagsPayload) XXX_Merge ¶
func (m *TagsPayload) XXX_Merge(src proto.Message)
func (*TagsPayload) XXX_Size ¶
func (m *TagsPayload) XXX_Size() int
func (*TagsPayload) XXX_Unmarshal ¶
func (m *TagsPayload) XXX_Unmarshal(b []byte) error
type TestError ¶
type TestError struct { }
TestError is meant for use in testing only.
func (*TestError) Descriptor ¶
func (*TestError) MarshalToSizedBuffer ¶
func (*TestError) ProtoMessage ¶
func (*TestError) ProtoMessage()
func (*TestError) XXX_DiscardUnknown ¶
func (m *TestError) XXX_DiscardUnknown()