scraper

package
v0.0.0-...-c1b5260 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(l *log.Logger)

Types

type Hostmap

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

func GenerateHostsFile

func GenerateHostsFile(cfg *TomlConfig, hostmaps []*Hostmap) []*Hostmap

type TomlConfig

type TomlConfig struct {
	Daemonize bool
	Sleep     int
	MaxAge    int
	Unifi     struct {
		Host     string
		User     string
		Password string
	}
	Hostsfile struct {
		Filename   string
		Domains    []string
		Additional []struct {
			IP        string
			Hostnames []string
			Name      string
		}
		Blocked []struct {
			IP   string
			Name string
		}
		KeepMacs bool
	}
}

Jump to

Keyboard shortcuts

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