block

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

func New

func New(policy Policy) *Block

func (*Block) Block

func (b *Block) Block(buf []byte)

func (*Block) Blocked

func (b *Block) Blocked(buf []byte) bool

func (*Block) UnBlock

func (b *Block) UnBlock(buf []byte)

type Policy

type Policy func(t time.Time, count int) bool

type Record

type Record struct {
	T time.Time
	C int
}

Jump to

Keyboard shortcuts

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