Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor interface { // Do compresses p into w. Do(w io.Writer, p []byte) error // Type returns the compression algorithm the Compressor uses. Type() CompType }
Compressor defines the interface gRPC uses to compress a message.
func NewGZIPCompressor ¶
func NewGZIPCompressor() Compressor
NewGZIPCompressor creates a Compressor based on GZIP.
type Decompressor ¶
type Decompressor interface { // Do reads the data from r and uncompress them. Do(r io.Reader) ([]byte, error) // Type returns the compression algorithm the Decompressor uses. Type() CompType }
Decompressor defines the interface gRPC uses to decompress a message.
func NewGZIPDecompressor ¶
func NewGZIPDecompressor() Decompressor
NewGZIPDecompressor creates a Decompressor based on GZIP.
Click to show internal directories.
Click to hide internal directories.