Documentation ¶
Index ¶
- Variables
- func ReadRequestBody(r io.Reader, header *pb.RequestHeader, request proto.Message) error
- func ReadRequestHeader(r io.Reader, header *pb.RequestHeader) (err error)
- func ReadResponseBody(r io.Reader, header *pb.ResponseHeader, response proto.Message) error
- func ReadResponseHeader(r io.Reader, header *pb.ResponseHeader) error
- func WriteRequest(w io.Writer, id uint64, method string, request proto.Message) error
- func WriteResponse(w io.Writer, id uint64, serr string, response proto.Message) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UseSnappy = true UseCrc32ChecksumIEEE = true )
Functions ¶
func ReadRequestBody ¶
func ReadRequestHeader ¶
func ReadRequestHeader(r io.Reader, header *pb.RequestHeader) (err error)
func ReadResponseBody ¶
func ReadResponseHeader ¶
func ReadResponseHeader(r io.Reader, header *pb.ResponseHeader) error
func WriteRequest ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.