Decompressor defines the interface gRPC uses to decompress a message. Deprecated: use package encoding.
| 110 | // |
| 111 | // Deprecated: use package encoding. |
| 112 | type 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 | |
| 119 | type gzipDecompressor struct { |
| 120 | pool sync.Pool |
nothing calls this directly
no outgoing calls
no test coverage detected