dnsseed

package
v0.0.0-...-86cabe3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: ISC Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SubnetworkIDPrefixChar is the prefix of subnetworkID, when building a DNS seed request
	SubnetworkIDPrefixChar byte = 'n'
)

Variables

This section is empty.

Functions

func SeedFromDNS

func SeedFromDNS(dagParams *dagconfig.Params, customSeed string, includeAllSubnetworks bool,
	subnetworkID *externalapi.DomainSubnetworkID, lookupFn LookupFunc, seedFn OnSeed)

SeedFromDNS uses DNS seeding to populate the address manager with peers.

func SeedFromGRPC

func SeedFromGRPC(dagParams *dagconfig.Params, customSeed string, includeAllSubnetworks bool,
	subnetworkID *externalapi.DomainSubnetworkID, seedFn OnSeed)

SeedFromGRPC send gRPC request to get list of peers for a given host

Types

type LookupFunc

type LookupFunc func(string) ([]net.IP, error)

LookupFunc is the signature of the DNS lookup function.

type OnSeed

type OnSeed func(addrs []*appmessage.NetAddress)

OnSeed is the signature of the callback function which is invoked when DNS seeding is successful.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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