Documentation
¶
Index ¶
- Variables
- type Error
- type Status
- func (Status) Descriptor() protoreflect.EnumDescriptor
- func (x Status) Enum() *Status
- func (Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Status) Number() protoreflect.EnumNumber
- func (x Status) String() string
- func (Status) Type() protoreflect.EnumType
- func (x *Status) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "OK", 1: "CANCELED", 2: "UNKNOWN", 3: "INVALID_ARGUMENT", 4: "DEADLINE_EXCEEDED", 5: "NOT_FOUND", 6: "ALREADY_EXISTS", 7: "PERMISSION_DENIED", 8: "RESOURCE_EXHAUSTED", 9: "FAILED_PRECONDITION", 10: "ABORTED", 11: "OUT_OF_RANGE", 12: "UNIMPLEMENTED", 13: "INTERNAL", 14: "UNAVAILABLE", 15: "DATA_LOSS", 16: "UNAUTHENTICATED", } Status_value = map[string]int32{ "OK": 0, "CANCELED": 1, "UNKNOWN": 2, "INVALID_ARGUMENT": 3, "DEADLINE_EXCEEDED": 4, "NOT_FOUND": 5, "ALREADY_EXISTS": 6, "PERMISSION_DENIED": 7, "RESOURCE_EXHAUSTED": 8, "FAILED_PRECONDITION": 9, "ABORTED": 10, "OUT_OF_RANGE": 11, "UNIMPLEMENTED": 12, "INTERNAL": 13, "UNAVAILABLE": 14, "DATA_LOSS": 15, "UNAUTHENTICATED": 16, } )
Enum value maps for Status.
View Source
var (
// repeated errors.Error types = 50003;
E_Types = &file_errors_proto_extTypes[0]
)
Extension fields to descriptorpb.MethodOptions.
View Source
var File_errors_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Status *Status `protobuf:"varint,1,req,name=status,enum=errors.Status" json:"status,omitempty"` Code *string `protobuf:"bytes,2,req,name=code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Status ¶
type Status int32
const ( Status_OK Status = 0 Status_CANCELED Status = 1 Status_UNKNOWN Status = 2 Status_INVALID_ARGUMENT Status = 3 Status_DEADLINE_EXCEEDED Status = 4 Status_NOT_FOUND Status = 5 Status_ALREADY_EXISTS Status = 6 Status_PERMISSION_DENIED Status = 7 Status_RESOURCE_EXHAUSTED Status = 8 Status_FAILED_PRECONDITION Status = 9 Status_ABORTED Status = 10 Status_OUT_OF_RANGE Status = 11 Status_UNIMPLEMENTED Status = 12 Status_INTERNAL Status = 13 Status_UNAVAILABLE Status = 14 Status_DATA_LOSS Status = 15 Status_UNAUTHENTICATED Status = 16 )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
func (*Status) UnmarshalJSON
deprecated
Click to show internal directories.
Click to hide internal directories.