Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResolver ¶
GetResolver returns a *net.Resolver object using a custom nameserver, or the default system resolver if no nameserver is specified
func SetPrometheusRegisterer ¶ added in v0.8.0
func SetPrometheusRegisterer(reg prometheus.Registerer, logger *zap.Logger)
SetPrometheusRegisterer is used to setup a custom prometheus registerer for metrics
Types ¶
type DNSDiscoveryOption ¶ added in v0.8.0
type DNSDiscoveryOption func(*dnsDiscoveryParameters)
func WithNameserver ¶
func WithNameserver(nameserver string) DNSDiscoveryOption
WithNameserver is a DnsDiscoveryOption that configures the nameserver to use
type DiscoveredNode ¶
func RetrieveNodes ¶
func RetrieveNodes(ctx context.Context, url string, opts ...DNSDiscoveryOption) ([]DiscoveredNode, error)
RetrieveNodes returns a list of multiaddress given a url to a DNS discoverable ENR tree
Click to show internal directories.
Click to hide internal directories.