domain

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *logger.L, domainName string, receptors receptor.Receptor, f func(string) ([]string, error)) (background.Process, error)

New - return background processing interface

Types

type DnsTXT

type DnsTXT struct {
	IPv4                   net.IP
	IPv6                   net.IP
	RPCPort                uint16
	ConnectPort            uint16
	CertificateFingerprint []byte
	PublicKey              []byte
}

DnsTXT - structure for dns txt record

func Parse

func Parse(s string) (*DnsTXT, error)

Parse - parse a dns txt record

type Lookuper

type Lookuper interface {
	Lookup(string) ([]DnsTXT, error)
}

Lookuper - interface to lookup DNS record

func NewLookuper

func NewLookuper(log *logger.L, f func(string) ([]string, error)) Lookuper

NewLookuper - new Lookuper interface

Jump to

Keyboard shortcuts

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