Versions in this module Expand all Collapse all v1 v1.0.5 Dec 26, 2020 Changes in this version + func ParseURL(url string) (domain string, pubkey *ecdsa.PublicKey, err error) + type Client struct + func NewClient(cfg Config) *Client + func (c *Client) NewIterator(urls ...string) (enode.Iterator, error) + func (c *Client) SyncTree(url string) (*Tree, error) + type Config struct + CacheLimit int + Logger log.Logger + RateLimit float64 + RecheckInterval time.Duration + Resolver Resolver + Timeout time.Duration + ValidSchemes enr.IdentityScheme + type Resolver interface + LookupTXT func(ctx context.Context, domain string) ([]string, error) + type Tree struct + func MakeTree(seq uint, nodes []*enode.Node, links []string) (*Tree, error) + func (t *Tree) Links() []string + func (t *Tree) Nodes() []*enode.Node + func (t *Tree) Seq() uint + func (t *Tree) SetSignature(pubkey *ecdsa.PublicKey, signature string) error + func (t *Tree) Sign(key *ecdsa.PrivateKey, domain string) (url string, err error) + func (t *Tree) Signature() string + func (t *Tree) ToTXT(domain string) map[string]string