Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeResp ¶ added in v0.1.44
Types ¶
type Request ¶
type Request struct { HeadLength uint32 BodyLength uint32 RequestID uint32 Version uint8 Compresser uint8 Serializer uint8 ServiceName string MethodName string Meta map[string]string Data []byte }
func (*Request) CalculateBodyLength ¶ added in v0.1.44
func (req *Request) CalculateBodyLength()
func (*Request) CalculateHeaderLength ¶ added in v0.1.44
func (req *Request) CalculateHeaderLength()
type Response ¶
type Response struct { HeadLength uint32 BodyLength uint32 RequestID uint32 Version uint8 Compresser uint8 Serializer uint8 Error []byte Data []byte }
func DecodeResp ¶ added in v0.1.44
func (*Response) CalculateBodyLength ¶ added in v0.1.44
func (resp *Response) CalculateBodyLength()
func (*Response) CalculateHeaderLength ¶ added in v0.1.44
func (resp *Response) CalculateHeaderLength()
Click to show internal directories.
Click to hide internal directories.