noop

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL