Documentation ¶
Overview ¶
Package com_hailocab_kernel_platform_error is a generated protocol buffer package.
It is generated from these files:
github.com/hailocab/h2/go/internal/p/proto/error/error.proto
It has these top-level messages:
PlatformError
Index ¶
- Variables
- type PlatformError
- func (m *PlatformError) GetCode() string
- func (m *PlatformError) GetContext() []string
- func (m *PlatformError) GetDescription() string
- func (m *PlatformError) GetHttpCode() uint32
- func (m *PlatformError) GetType() PlatformError_ErrorType
- func (*PlatformError) ProtoMessage()
- func (m *PlatformError) Reset()
- func (m *PlatformError) String() string
- type PlatformError_ErrorType
Constants ¶
This section is empty.
Variables ¶
View Source
var PlatformError_ErrorType_name = map[int32]string{
1: "INTERNAL_SERVER_ERROR",
2: "BAD_REQUEST",
3: "BAD_RESPONSE",
4: "TIMEOUT",
5: "FORBIDDEN",
6: "NOT_FOUND",
7: "CONFLICT",
}
View Source
var PlatformError_ErrorType_value = map[string]int32{
"INTERNAL_SERVER_ERROR": 1,
"BAD_REQUEST": 2,
"BAD_RESPONSE": 3,
"TIMEOUT": 4,
"FORBIDDEN": 5,
"NOT_FOUND": 6,
"CONFLICT": 7,
}
Functions ¶
This section is empty.
Types ¶
type PlatformError ¶
type PlatformError struct { Type *PlatformError_ErrorType `protobuf:"varint,1,req,name=type,enum=com.hailocab.kernel.platform.error.PlatformError_ErrorType" json:"type,omitempty"` Code *string `protobuf:"bytes,2,req,name=code" json:"code,omitempty"` Description *string `protobuf:"bytes,3,req,name=description" json:"description,omitempty"` HttpCode *uint32 `protobuf:"varint,4,opt,name=httpCode" json:"httpCode,omitempty"` Context []string `protobuf:"bytes,5,rep,name=context" json:"context,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*PlatformError) GetCode ¶
func (m *PlatformError) GetCode() string
func (*PlatformError) GetContext ¶
func (m *PlatformError) GetContext() []string
func (*PlatformError) GetDescription ¶
func (m *PlatformError) GetDescription() string
func (*PlatformError) GetHttpCode ¶
func (m *PlatformError) GetHttpCode() uint32
func (*PlatformError) GetType ¶
func (m *PlatformError) GetType() PlatformError_ErrorType
func (*PlatformError) ProtoMessage ¶
func (*PlatformError) ProtoMessage()
func (*PlatformError) Reset ¶
func (m *PlatformError) Reset()
func (*PlatformError) String ¶
func (m *PlatformError) String() string
type PlatformError_ErrorType ¶
type PlatformError_ErrorType int32
const ( PlatformError_INTERNAL_SERVER_ERROR PlatformError_ErrorType = 1 PlatformError_BAD_REQUEST PlatformError_ErrorType = 2 PlatformError_BAD_RESPONSE PlatformError_ErrorType = 3 PlatformError_TIMEOUT PlatformError_ErrorType = 4 PlatformError_FORBIDDEN PlatformError_ErrorType = 5 PlatformError_NOT_FOUND PlatformError_ErrorType = 6 PlatformError_CONFLICT PlatformError_ErrorType = 7 )
func (PlatformError_ErrorType) Enum ¶
func (x PlatformError_ErrorType) Enum() *PlatformError_ErrorType
func (PlatformError_ErrorType) MarshalJSON ¶
func (x PlatformError_ErrorType) MarshalJSON() ([]byte, error)
func (PlatformError_ErrorType) String ¶
func (x PlatformError_ErrorType) String() string
func (*PlatformError_ErrorType) UnmarshalJSON ¶
func (x *PlatformError_ErrorType) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.