db

package
v0.0.0-...-c6b72c6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

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

DNS database

func New

func New(dbFileName string) (*DNS, error)

New database file, create one if not exist

func (*DNS) Close

func (d *DNS) Close() error

Close the DB

func (*DNS) SelectIP

func (dnsDB *DNS) SelectIP(domainPort string) (host, hostPort string)

SelectIP domain -> IP kfd.me:8080 -> xx.x.xx.x:8080

Jump to

Keyboard shortcuts

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