Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCodec ¶
func RegisterCodec(codec Codec)
RegisterCodec registers the provided Codec for use with all HTTP/gRPC clients and servers.
func RegisterCompressor ¶
func RegisterCompressor(c Compressor)
RegisterCompressor registers the compressor with HTTP/gRPC by its name.
Types ¶
type Codec ¶
Codec defines the interface HTTP/gRPC uses to encode and decode messages. Note that implementations of this interface must be thread safe; a Codec's methods can be called from concurrent goroutines.
type Compressor ¶
type Compressor encoding.Compressor
Compressor is used for compressing and decompressing when sending or receiving messages.
func GetCompressor ¶
func GetCompressor(name string) Compressor
GetCompressor returns Compressor for the given compressor name.
Click to show internal directories.
Click to hide internal directories.