hosts

package
v0.0.0-...-a41b718 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHosts

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

func (*FileHosts) Get

func (f *FileHosts) Get(domain string) ([]string, bool)

func (*FileHosts) Refresh

func (f *FileHosts) Refresh()

type Hosts

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

func NewHosts

func NewHosts(hs *conf.HostsFileConfig) *Hosts

func (*Hosts) Get

func (h *Hosts) Get(domain string, family int) ([]net.IP, bool)

Jump to

Keyboard shortcuts

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