Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNoOpCompressor ¶
func NewNoOpCompressor() compressors.Compressor
NewNoOpCompressor returns a new instance of no-op compressor.
Types ¶
type CompressorNoOp ¶
type CompressorNoOp struct{}
CompressorNoOp implements Compressor based on the No-Op pattern.
func (*CompressorNoOp) Compress ¶
func (compressor *CompressorNoOp) Compress(data []byte) ([]byte, error)
Compress returns the bytes received as-is.
func (*CompressorNoOp) Decompress ¶
func (compressor *CompressorNoOp) Decompress(data []byte) ([]byte, error)
Decompress returns the bytes received as-is.
func (*CompressorNoOp) GetType ¶
func (compressor *CompressorNoOp) GetType() string
GetType returns the string identifier for no-op compressor.
Click to show internal directories.
Click to hide internal directories.