Documentation ¶
Overview ¶
Package status is a generated protocol buffer package.
It is generated from these files:
status/status.proto
It has these top-level messages:
Status
Index ¶
- Variables
- func Errorf(c codes.Code, format string, a ...interface{}) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) Error() string
- func (m *Status) GetCode() codes.Code
- func (m *Status) GetMessage() string
- func (m *Status) Marshal() (dAtA []byte, err error)
- func (m *Status) MarshalTo(dAtA []byte) (int, error)
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) Size() (n int)
- func (m *Status) String() string
- func (m *Status) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthStatus = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStatus = fmt.Errorf("proto: integer overflow") )
Functions ¶
Types ¶
type Status ¶
type Status struct { Code codes.Code `protobuf:"varint,1,opt,name=code,proto3,enum=codes.Code" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` }
func FromError ¶
FromError returns a Status representing err if it was produced from this package, otherwise it returns nil, false.
func (*Status) Descriptor ¶
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.