Documentation ¶
Index ¶
- Variables
- type ApplicationError
- func (*ApplicationError) Descriptor() ([]byte, []int)
- func (m *ApplicationError) GetCode() int32
- func (m *ApplicationError) GetDetail() string
- func (*ApplicationError) ProtoMessage()
- func (m *ApplicationError) Reset()
- func (m *ApplicationError) String() string
- func (m *ApplicationError) XXX_DiscardUnknown()
- func (m *ApplicationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ApplicationError) XXX_Merge(src proto.Message)
- func (m *ApplicationError) XXX_Size() int
- func (m *ApplicationError) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetMethod() string
- func (m *Request) GetRequest() []byte
- func (m *Request) GetRequestId() string
- func (m *Request) GetServiceName() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetApplicationError() *ApplicationError
- func (m *Response) GetException() []byte
- func (m *Response) GetJavaException() []byte
- func (m *Response) GetResponse() []byte
- func (m *Response) GetRpcError() *RpcError
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type RpcError
- func (*RpcError) Descriptor() ([]byte, []int)
- func (m *RpcError) GetCode() int32
- func (m *RpcError) GetDetail() string
- func (*RpcError) ProtoMessage()
- func (m *RpcError) Reset()
- func (m *RpcError) String() string
- func (m *RpcError) XXX_DiscardUnknown()
- func (m *RpcError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RpcError) XXX_Merge(src proto.Message)
- func (m *RpcError) XXX_Size() int
- func (m *RpcError) XXX_Unmarshal(b []byte) error
- type RpcError_ErrorCode
Constants ¶
This section is empty.
Variables ¶
View Source
var RpcError_ErrorCode_name = map[int32]string{
0: "UNKNOWN",
1: "CALL_NOT_FOUND",
2: "PARSE_ERROR",
3: "SECURITY_VIOLATION",
4: "OVER_QUOTA",
5: "REQUEST_TOO_LARGE",
6: "CAPABILITY_DISABLED",
7: "FEATURE_DISABLED",
8: "BAD_REQUEST",
9: "RESPONSE_TOO_LARGE",
10: "CANCELLED",
11: "REPLAY_ERROR",
12: "DEADLINE_EXCEEDED",
}
View Source
var RpcError_ErrorCode_value = map[string]int32{
"UNKNOWN": 0,
"CALL_NOT_FOUND": 1,
"PARSE_ERROR": 2,
"SECURITY_VIOLATION": 3,
"OVER_QUOTA": 4,
"REQUEST_TOO_LARGE": 5,
"CAPABILITY_DISABLED": 6,
"FEATURE_DISABLED": 7,
"BAD_REQUEST": 8,
"RESPONSE_TOO_LARGE": 9,
"CANCELLED": 10,
"REPLAY_ERROR": 11,
"DEADLINE_EXCEEDED": 12,
}
Functions ¶
This section is empty.
Types ¶
type ApplicationError ¶
type ApplicationError struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Detail *string `protobuf:"bytes,2,req,name=detail" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ApplicationError) Descriptor ¶
func (*ApplicationError) Descriptor() ([]byte, []int)
func (*ApplicationError) GetCode ¶
func (m *ApplicationError) GetCode() int32
func (*ApplicationError) GetDetail ¶
func (m *ApplicationError) GetDetail() string
func (*ApplicationError) ProtoMessage ¶
func (*ApplicationError) ProtoMessage()
func (*ApplicationError) Reset ¶
func (m *ApplicationError) Reset()
func (*ApplicationError) String ¶
func (m *ApplicationError) String() string
func (*ApplicationError) XXX_DiscardUnknown ¶
func (m *ApplicationError) XXX_DiscardUnknown()
func (*ApplicationError) XXX_Marshal ¶
func (m *ApplicationError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplicationError) XXX_Merge ¶
func (dst *ApplicationError) XXX_Merge(src proto.Message)
func (*ApplicationError) XXX_Size ¶
func (m *ApplicationError) XXX_Size() int
func (*ApplicationError) XXX_Unmarshal ¶
func (m *ApplicationError) XXX_Unmarshal(b []byte) error
type Request ¶
type Request struct { ServiceName *string `protobuf:"bytes,2,req,name=service_name,json=serviceName" json:"service_name,omitempty"` Method *string `protobuf:"bytes,3,req,name=method" json:"method,omitempty"` Request []byte `protobuf:"bytes,4,req,name=request" json:"request,omitempty"` RequestId *string `protobuf:"bytes,5,opt,name=request_id,json=requestId" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetRequest ¶
func (*Request) GetRequestId ¶
func (*Request) GetServiceName ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Response []byte `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"` Exception []byte `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` ApplicationError *ApplicationError `protobuf:"bytes,3,opt,name=application_error,json=applicationError" json:"application_error,omitempty"` JavaException []byte `protobuf:"bytes,4,opt,name=java_exception,json=javaException" json:"java_exception,omitempty"` RpcError *RpcError `protobuf:"bytes,5,opt,name=rpc_error,json=rpcError" json:"rpc_error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetApplicationError ¶
func (m *Response) GetApplicationError() *ApplicationError
func (*Response) GetException ¶
func (*Response) GetJavaException ¶
func (*Response) GetResponse ¶
func (*Response) GetRpcError ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type RpcError ¶
type RpcError struct { Code *int32 `protobuf:"varint,1,req,name=code" json:"code,omitempty"` Detail *string `protobuf:"bytes,2,opt,name=detail" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RpcError) Descriptor ¶
func (*RpcError) ProtoMessage ¶
func (*RpcError) ProtoMessage()
func (*RpcError) XXX_DiscardUnknown ¶
func (m *RpcError) XXX_DiscardUnknown()
func (*RpcError) XXX_Marshal ¶
func (*RpcError) XXX_Unmarshal ¶
type RpcError_ErrorCode ¶
type RpcError_ErrorCode int32
const ( RpcError_UNKNOWN RpcError_ErrorCode = 0 RpcError_CALL_NOT_FOUND RpcError_ErrorCode = 1 RpcError_PARSE_ERROR RpcError_ErrorCode = 2 RpcError_SECURITY_VIOLATION RpcError_ErrorCode = 3 RpcError_OVER_QUOTA RpcError_ErrorCode = 4 RpcError_REQUEST_TOO_LARGE RpcError_ErrorCode = 5 RpcError_CAPABILITY_DISABLED RpcError_ErrorCode = 6 RpcError_FEATURE_DISABLED RpcError_ErrorCode = 7 RpcError_BAD_REQUEST RpcError_ErrorCode = 8 RpcError_RESPONSE_TOO_LARGE RpcError_ErrorCode = 9 RpcError_CANCELLED RpcError_ErrorCode = 10 RpcError_REPLAY_ERROR RpcError_ErrorCode = 11 RpcError_DEADLINE_EXCEEDED RpcError_ErrorCode = 12 )
func (RpcError_ErrorCode) Enum ¶
func (x RpcError_ErrorCode) Enum() *RpcError_ErrorCode
func (RpcError_ErrorCode) EnumDescriptor ¶
func (RpcError_ErrorCode) EnumDescriptor() ([]byte, []int)
func (RpcError_ErrorCode) String ¶
func (x RpcError_ErrorCode) String() string
func (*RpcError_ErrorCode) UnmarshalJSON ¶
func (x *RpcError_ErrorCode) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.