Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolCodeV1 byte = 1 RequestType byte = 1 ResponseType byte = 0 CmdCodeRPCRequest uint16 = 1 CmdCodeRPCResponse uint16 = 2 CmdVersion byte = 1 // BOLT wire codec byte for Hessian payloads. This is distinct from // SOFARPC's higher-level serializer constants such as // SERIALIZE_CODE_HESSIAN2 = 4. CodecHessian2 byte = 1 // CodecJSON is the code SOFARPC registers its Jackson serializer under // (@Extension(value = "json", code = 12)). CodecJSON byte = 12 // Response statuses the provider's remoting layer sets when the SOFARPC // serializer fails: it could not encode the result, or could not decode // the request. StatusServerSerialException uint16 = 0x0011 StatusServerDeserialException uint16 = 0x0012 // DefaultMaxResponseBytes caps the BOLT response body before allocating // class/header/content buffers. It covers the variable-length body only; // the fixed 20-byte response header is read separately. DefaultMaxResponseBytes int64 = 16 << 20 )
View Source
const ( StageEncode = "encode" StageDial = "dial" StageWrite = "write" StageRead = "read" RequestNotSent = "not-sent" RequestWriteUnknown = "write-uncertain" RequestWritten = "request-written" )
Variables ¶
This section is empty.
Functions ¶
func EncodeRequest ¶
Types ¶
type AttemptError ¶
AttemptError records the failed stage and what the client observed about writing the request. A complete socket write does not establish delivery.
func (*AttemptError) Error ¶
func (e *AttemptError) Error() string
func (*AttemptError) Unwrap ¶
func (e *AttemptError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.