ratelimiter

package
Version: v0.0.0-...-baf8c09 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ratelimiter

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

func (*Ratelimiter) Allow

func (rate *Ratelimiter) Allow(ip net.IP) bool

func (*Ratelimiter) Close

func (rate *Ratelimiter) Close()

func (*Ratelimiter) Init

func (rate *Ratelimiter) Init()

type RatelimiterEntry

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

Source Files

Jump to

Keyboard shortcuts

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