blacklist

package
v0.0.0-...-ef12607 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blacklist

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

func New

func New(httpClient *http.Client) *Blacklist

func (*Blacklist) Contains

func (b *Blacklist) Contains(host string) bool

func (*Blacklist) Subscribe

func (b *Blacklist) Subscribe(blacklistURL string)

func (*Blacklist) Watch

func (b *Blacklist) Watch(ctx context.Context, interval time.Duration)

Jump to

Keyboard shortcuts

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