filters

package
v0.0.0-...-4a5339b Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BZIP_C_MAGIC = []byte{0x31, 0x41, 0x59, 0x26, 0x53, 0x59}
View Source
var BZIP_MAGIC = []byte("BZh")
View Source
var GZIP_MAGIC = [...]byte{0x1f, 0x8b}

Functions

This section is empty.

Types

type Bzip2Filter

type Bzip2Filter struct {
}

func (Bzip2Filter) Apply

func (gf Bzip2Filter) Apply(rdr io.Reader) (io.Reader, error)

func (Bzip2Filter) Name

func (gf Bzip2Filter) Name() string

func (Bzip2Filter) PeekLen

func (gf Bzip2Filter) PeekLen() int

func (Bzip2Filter) Score

func (gf Bzip2Filter) Score(name string, buf []byte) FilterScore

type FilterScore

type FilterScore int
const (
	FilterScoreNoMatch FilterScore = iota
	FilterScoreWeakMatch
	FilterScoreFullMatch
)

type GzipFilter

type GzipFilter struct {
}

func (GzipFilter) Apply

func (gf GzipFilter) Apply(rdr io.Reader) (io.Reader, error)

func (GzipFilter) Name

func (gf GzipFilter) Name() string

func (GzipFilter) PeekLen

func (gf GzipFilter) PeekLen() int

func (GzipFilter) Score

func (gf GzipFilter) Score(name string, buf []byte) FilterScore

Jump to

Keyboard shortcuts

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