MCPcopy
hub / github.com/grpc/grpc-go / Decompressor

Interface Decompressor

rpc_util.go:112–117  ·  rpc_util.go::Decompressor

Decompressor defines the interface gRPC uses to decompress a message. Deprecated: use package encoding.

Source from the content-addressed store, hash-verified

110//
111// Deprecated: use package encoding.
112type Decompressor interface {
113 // Do reads the data from r and uncompress them.
114 Do(r io.Reader) ([]byte, error)
115 // Type returns the compression algorithm the Decompressor uses.
116 Type() string
117}
118
119type gzipDecompressor struct {
120 pool sync.Pool

Callers

nothing calls this directly

Implementers 6

gzipCompressorrpc_util.go
gzipDecompressorrpc_util.go
MockDecompressorrpc_util_test.go
nopCompressorbenchmark/benchmain/main.go
nopDecompressorbenchmark/benchmain/main.go
badGzipCompressortest/compressor_test.go

Calls

no outgoing calls

Tested by

no test coverage detected