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 ¶
Click to show internal directories.
Click to hide internal directories.