config

package
v0.0.0-...-932c4e4 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: GPL-3.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 BlockerConfig

type BlockerConfig struct {
	UpstreamDns  string
	BlockList    []string
	Addr         string
	Enabled      bool
	QueryChannel chan QueryEvent
}

func (*BlockerConfig) AddHostToBlockList

func (bc *BlockerConfig) AddHostToBlockList(blockHost string)

func (*BlockerConfig) StartDnsServer

func (bc *BlockerConfig) StartDnsServer() error

func (*BlockerConfig) ToggleBlocker

func (bc *BlockerConfig) ToggleBlocker()

func (*BlockerConfig) UpdateBlockList

func (bc *BlockerConfig) UpdateBlockList(blockList []string)

type QueryEvent

type QueryEvent struct {
	Hostname string
	Blocked  bool
}

Jump to

Keyboard shortcuts

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