dns

package module
v0.0.0-...-f6ebae0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

README

dns-discovery

DNS based discovery for libp2p based on EIP-1459, the implementation is heavily inspired by the code found in go-ethereum. Currently the discovery function wraps around go-ethereum.

TODOs

  • Work on changes to go-ethereum that allow for EIP-1459 with various network address types. Abstraction of encoding decoding.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSDiscovery

func NewDNSDiscovery(domain string, r Resolver, c dnsdisc.Client) discovery.Discoverer

Types

type Resolver

type Resolver interface {
	LookupTXT(ctx context.Context, name string) ([]string, error)
}

Jump to

Keyboard shortcuts

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