compress

package module
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package compress provides compression algorithms for fido persistence stores.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	Encode(data []byte) ([]byte, error)
	Decode(data []byte) ([]byte, error)
	Extension() string
}

Compressor compresses and decompresses data.

func None

func None() Compressor

None returns a pass-through compressor (no compression).

func S2

func S2() Compressor

S2 returns a fast compressor using S2 (improved Snappy).

func Zstd

func Zstd(level int) Compressor

Zstd returns a compressor using Zstandard. Level: 1 (fastest) to 4 (best compression).

Jump to

Keyboard shortcuts

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