dnsseed

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	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)

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)

type OnSeed

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

Jump to

Keyboard shortcuts

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