hosts

package
v0.0.0-...-3442565 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GUARD_BEGIN_TEMPLATE = "# Begin host entries managed by __key__ - do not edit"
View Source
const GUARD_END_TEMPLATE = "# End host entries managed by __key__"

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Key string
	// contains filtered or unexported fields
}

func (*Provider) AddFallbacks

func (h *Provider) AddFallbacks(dnsFallbacks map[string][]net.IP) error

func (*Provider) UpdateHosts

func (h *Provider) UpdateHosts(addressToHosts map[string][]string) error

Jump to

Keyboard shortcuts

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