blocklist

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blocklist

type Blocklist []string

func NewBlocklist

func NewBlocklist(ctx context.Context) *Blocklist

func (*Blocklist) IsExists

func (m *Blocklist) IsExists(ip string) (ok bool)

func (*Blocklist) Push

func (m *Blocklist) Push(ips ...string)

func (*Blocklist) Reset

func (m *Blocklist) Reset()

func (*Blocklist) Size

func (m *Blocklist) Size() (size int)

Jump to

Keyboard shortcuts

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