MCPcopy Create free account
hub / github.com/Azure/peerd / Resolve

Method Resolve

pkg/discovery/routing/interface.go:18–18  ·  view source on GitHub ↗

Resolve resolves the given key to a peer address.

(ctx context.Context, key string, allowSelf bool, count int)

Source from the content-addressed store, hash-verified

16
17 // Resolve resolves the given key to a peer address.
18 Resolve(ctx context.Context, key string, allowSelf bool, count int) (<-chan PeerInfo, error)
19
20 // ResolveWithNegativeCacheCallback is like Resolve but it also returns a function callback that can be used to cache that a key could not be resolved.
21 ResolveWithNegativeCacheCallback(ctx context.Context, key string, allowSelf bool, count int) (<-chan PeerInfo, func(), error)

Callers

nothing calls this directly

Implementers 2

routerpkg/discovery/routing/router.go
MockRouterpkg/discovery/routing/mocks/router.go

Calls

no outgoing calls

Tested by

no test coverage detected