Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrNoPeersToAsk = errors.Error("no peers to ask")
)
Variables ¶
This section is empty.
Functions ¶
func NewPeerCache ¶ added in v0.11.1
func WithBoostrapPeers ¶
WithBoostrapPeers overrides the default bootstrap peers for the resolver.
Types ¶
type LookupOption ¶
type LookupOption func(*LookupOptions)
LookupOptions
func LookupByCertificateSigner ¶
func LookupByCertificateSigner(certSigner crypto.PublicKey) LookupOption
LookupByCertificateSigner matches certificate signers
func LookupByContentHash ¶
func LookupByContentHash(hash object.Hash) LookupOption
LookupByContentHash matches content hashes
func LookupByContentType ¶
func LookupByContentType(contentType string) LookupOption
LookupByContentType matches content hashes
func LookupByOwner ¶
func LookupByOwner(keys ...crypto.PublicKey) LookupOption
LookupByOwner matches the peer key
func LookupOnlyLocal ¶
func LookupOnlyLocal() LookupOption
LookupOnlyLocal forces the discoverer to only look at its cache
type LookupOptions ¶
type LookupOptions struct { Local bool // Lookups are strings we are looking for, will be used to create a // bloom filter when forwarding the lookup request to providers Lookups []string // filters are the lookups equivalents for matching local peers Filters []LookupFilter }
LookupOptions
func ParseLookupOptions ¶
func ParseLookupOptions(opts ...LookupOption) *LookupOptions
Click to show internal directories.
Click to hide internal directories.