blocker

package
v0.0.0-...-8375cc0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocker

type Blocker interface {
	parser.HostAdder
	dnsserver.Blocker
	Len() int
}

type HashBlocker

type HashBlocker struct {
	// contains filtered or unexported fields
}

func (*HashBlocker) AddHost

func (b *HashBlocker) AddHost(source, host string)

func (*HashBlocker) Block

func (b *HashBlocker) Block(host string) bool

func (*HashBlocker) Len

func (b *HashBlocker) Len() int

func (*HashBlocker) Reset

func (b *HashBlocker) Reset(source string)

type RadixBlocker

type RadixBlocker struct {
	// contains filtered or unexported fields
}

func (*RadixBlocker) AddHost

func (b *RadixBlocker) AddHost(source, host string)

func (*RadixBlocker) Block

func (b *RadixBlocker) Block(host string) bool

func (*RadixBlocker) Len

func (b *RadixBlocker) Len() int

func (*RadixBlocker) Reset

func (b *RadixBlocker) Reset(source string)

type SliceBlocker

type SliceBlocker struct {
	// contains filtered or unexported fields
}

func (*SliceBlocker) AddHost

func (b *SliceBlocker) AddHost(source, host string)

func (*SliceBlocker) Block

func (b *SliceBlocker) Block(host string) bool

func (*SliceBlocker) Len

func (b *SliceBlocker) Len() int

func (*SliceBlocker) Reset

func (b *SliceBlocker) Reset(source string)

Jump to

Keyboard shortcuts

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