hosts

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostReader added in v1.0.0

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

HostReader 管理hosts

func (*HostReader) Get added in v1.0.0

func (h *HostReader) Get(req *dns.Msg) *dns.Msg

type IDNSHosts added in v1.0.0

type IDNSHosts interface {
	Get(req *dns.Msg) *dns.Msg
}

func NewDNSHosts added in v1.0.0

func NewDNSHosts(conf config.Conf) (IDNSHosts, error)

Jump to

Keyboard shortcuts

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