addomains

package
v0.0.0-...-3ce210a Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdList              = "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
	AdDomainInterval    = 18000
	RequestsUntilUpdate = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdDomainDb

type AdDomainDb struct {
	RwLock    sync.RWMutex
	AdDomains map[string]*adGenerator
	Requests  uint64
	Ticker    time.Ticker
}

func NewAdDomains

func NewAdDomains() *AdDomainDb

func (*AdDomainDb) GetAdDomains

func (db *AdDomainDb) GetAdDomains() error

Jump to

Keyboard shortcuts

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