github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/resolver.go (about)

     1  package network
     2  
     3  import (
     4  	"context"
     5  	"net"
     6  )
     7  
     8  // BasicResolver is a low level interface for DNS resolution
     9  // Note: this is the resolver interface that libp2p expects.
    10  // We keep a copy of it here for mock generation.
    11  // https://github.com/multiformats/go-multiaddr-dns/blob/master/resolve.go
    12  type BasicResolver interface {
    13  	LookupIPAddr(context.Context, string) ([]net.IPAddr, error)
    14  	LookupTXT(context.Context, string) ([]string, error)
    15  }