compression

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor added in v0.8.0

type Compressor interface {
	Name() string
	Compress(data []byte) ([]byte, error)
	Decompress(data []byte) ([]byte, error)
}

type SnappyCompressor

type SnappyCompressor struct{}

func NewSnappyCompressor

func NewSnappyCompressor() *SnappyCompressor

func (*SnappyCompressor) Compress

func (s *SnappyCompressor) Compress(data []byte) ([]byte, error)

func (*SnappyCompressor) Decompress

func (s *SnappyCompressor) Decompress(data []byte) ([]byte, error)

func (*SnappyCompressor) Name added in v0.8.0

func (s *SnappyCompressor) Name() string

Jump to

Keyboard shortcuts

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