MCPcopy Create free account
hub / github.com/lwch/natpass / Compressor

Interface Compressor

code/network/encoding/encoding.go:14–21  ·  view source on GitHub ↗

Compressor compressor interface

Source from the content-addressed store, hash-verified

12
13// Compressor compressor interface
14type Compressor interface {
15 // Compress get compress writer
16 Compress(io.Writer) (io.WriteCloser, error)
17 // Decompress get decompress reader
18 Decompress(io.Reader) (io.ReadCloser, error)
19 // SetLevel set compress level
20 SetLevel(int) error
21}

Callers 2

serializeMethod · 0.65
unserializeMethod · 0.65

Implementers 1

compressorcode/network/encoding/gzip/gzip.go

Calls

no outgoing calls

Tested by

no test coverage detected