dns

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Address string
	Port    uint16
}

func (Address) String

func (a Address) String() string

type Lookup

type Lookup interface {
	LookupSRV(name string) ([]net.SRV, error)
	LookupA(name string) (string, error)
}

type LookupLib

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

func NewDefaultLookupLib

func NewDefaultLookupLib() *LookupLib

func NewLookupLib

func NewLookupLib(serverString string) *LookupLib

func (*LookupLib) LookupA

func (l *LookupLib) LookupA(name string) (string, error)

func (*LookupLib) LookupSRV

func (l *LookupLib) LookupSRV(name string) ([]net.SRV, error)

Jump to

Keyboard shortcuts

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