Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SubnetworkIDPrefixChar is the prefix of subnetworkID, when building a DNS seed request SubnetworkIDPrefixChar byte = 'n' // ServiceFlagPrefixChar is the prefix of service flag, when building a DNS seed request ServiceFlagPrefixChar byte = 'x' )
Variables ¶
This section is empty.
Functions ¶
func SeedFromDNS ¶
func SeedFromDNS(dagParams *dagconfig.Params, customSeed string, reqServices appmessage.ServiceFlag, 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, reqServices appmessage.ServiceFlag, includeAllSubnetworks bool, subnetworkID *externalapi.DomainSubnetworkID, seedFn OnSeed)
SeedFromGRPC send gRPC request to get list of peers for a given host
Types ¶
type LookupFunc ¶
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.
Click to show internal directories.
Click to hide internal directories.