filter

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCodeRange

func WithCodeRange(from, to int) func(*RecordFilter)

func WithMimeType

func WithMimeType(mimeTypes []string) func(*RecordFilter)

func WithRecordIds

func WithRecordIds(ids []string) func(*RecordFilter)

func WithRecordTypes

func WithRecordTypes(recordTypes gowarc.RecordType) func(*RecordFilter)

Types

type RecordFilter

type RecordFilter struct {
	RecordTypes gowarc.RecordType
	// contains filtered or unexported fields
}

func New

func New(options ...func(*RecordFilter)) *RecordFilter

func (*RecordFilter) Accept

func (f *RecordFilter) Accept(wr gowarc.WarcRecord) bool

Jump to

Keyboard shortcuts

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