buckets

package
v0.0.0-...-46d0f06 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2014 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Additional Bucket types for more complex filtering

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllBucket

type AllBucket struct {
	Children []scrap.Bucket
}

Bucket that contains buckets - only returns true if all sub-buckets return true.

Buckets are tested in order, using short-circuiting behavior. This means that if an earlier bucket returns false, the ones after it will not be tested.

func (AllBucket) Check

func (ab AllBucket) Check(url string) bool

type AnyBucket

type AnyBucket struct {
	Children []scrap.Bucket
}

Bucket that contains buckets - returns true if any sub-buckets return true.

Buckets are tested in order, using short-circuiting behavior. This means that if an earlier bucket returns true, the ones after it will not be tested.

func (AnyBucket) Check

func (ab AnyBucket) Check(url string) bool

type RejectContainsBucket

type RejectContainsBucket string

func (RejectContainsBucket) Check

func (b RejectContainsBucket) Check(url string) bool

type RejectExactBucket

type RejectExactBucket string

func (RejectExactBucket) Check

func (b RejectExactBucket) Check(url string) bool

type RejectPrefixBucket

type RejectPrefixBucket string

func (RejectPrefixBucket) Check

func (b RejectPrefixBucket) Check(url string) bool

type RejectSuffixBucket

type RejectSuffixBucket string

func (RejectSuffixBucket) Check

func (b RejectSuffixBucket) Check(url string) bool

Jump to

Keyboard shortcuts

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