Versions in this module Expand all Collapse all v1 v1.0.3 Nov 19, 2026 v1.0.2 Nov 5, 2026 v1.0.1 Nov 4, 2026 v1.0.0 Nov 3, 2026 Changes in this version + const MultiAlgorithmSDKAvailable + var ErrUnavailable = errors.New("codec unavailable") + type Codec interface + type FPGA struct + Hardware fpgagzip.Hardware + OpenHardware func() (fpgagzip.Hardware, error) + Options fpgagzip.Options + Report func(fpgagzip.Progress) + func (f *FPGA) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (f *FPGA) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + func (f *FPGA) Health() error + func (f *FPGA) Name() string + func (f *FPGA) ResetHealth() + type FPGAGroup struct + func NewFPGAGroup(cores ...*FPGA) (*FPGAGroup, error) + func (*FPGAGroup) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (*FPGAGroup) Name() string + func (g *FPGAGroup) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + type Fallback struct + Fallback Codec + Primary Codec + func (f Fallback) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (f Fallback) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + func (f Fallback) Name() string + type FileDecoder interface + DecodeFile func(ctx context.Context, source *os.File, rawSize int64, dst io.Writer) error + type FileEncoder interface + EncodeFile func(ctx context.Context, source *os.File, dst io.Writer) (Stats, error) + type FileResult struct + File *os.File + Stats Stats + func (r *FileResult) Close() error + type FileResultEncoder interface + EncodeFileResult func(ctx context.Context, source *os.File) (*FileResult, error) + type FirmwareIdentity struct + Algorithm string + Build uint64 + Cores int + type Gzip encoder.Gzip + func NewGzip(level int) (*Gzip, error) + func (*Gzip) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (*Gzip) Name() string + func (g *Gzip) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + type LZ4 encoder.LZ4 + func (LZ4) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (LZ4) Name() string + func (l LZ4) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + type MinLZ encoder.MinLZ + func NewMinLZ(level int) (*MinLZ, error) + func (*MinLZ) Name() string + func (m *MinLZ) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (m *MinLZ) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + type MultiFPGA struct + func NewMultiFPGA(options MultiFPGAOptions) (*MultiFPGA, error) + func (m *MultiFPGA) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (m *MultiFPGA) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + func (m *MultiFPGA) Name() string + func (m *MultiFPGA) WithAlgorithm(algorithm string) (*MultiFPGA, error) + type MultiFPGAOptions struct + Algorithm string + BeforeOpen func() error + CPU map[string]Codec + Cores int + OpenHardware func(core int) (fpgagzip.Hardware, error) + Options fpgagzip.Options + UserDevice string + type Prediction struct + Checked bool + Entropy float64 + Nanos int64 + Ratio float64 + SampleBytes int64 + Skip bool + type PredictionMetrics struct + Checks int64 + Errors int64 + LastEntropy float64 + LastRatio float64 + Mode string + Nanos int64 + RawBytes int64 + SampleBytes int64 + SkippedBytes int64 + SkippedChunks int64 + type PredictionOptions struct + DeflateRatio float64 + EntropyThreshold float64 + Mode string + SampleBytes int + func DefaultPredictionOptions() PredictionOptions + type Predictor struct + func NewPredictor(options PredictionOptions) (*Predictor, error) + func (p *Predictor) Options() PredictionOptions + func (p *Predictor) Predict(ctx context.Context, raw []byte) (result Prediction, err error) + type Raw encoder.Raw + func (Raw) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (Raw) Name() string + func (r Raw) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error) + type Stats = encoder.Stats + type WorkerStatus struct + CPUFallbacks int64 + FileBytes int64 + FileDecodeBytes int64 + FileDecodeRequests int64 + FileFallbacks int64 + FileOutputBytes int64 + FileOutputRequests int64 + FileRequests int64 + LastCodec string + PID int + Prediction *PredictionMetrics + Protocol int + Retries int64 + Socket string + Version string + type Zstd encoder.Zstd + func NewZstd(level int) (*Zstd, error) + func (*Zstd) Name() string + func (z *Zstd) Decode(ctx context.Context, src io.Reader, dst io.Writer) error + func (z *Zstd) Encode(ctx context.Context, raw []byte, dst io.Writer) (Stats, error)