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

Method ResolveWithNegativeCacheCallback

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

ResolveWithNegativeCacheCallback is like Resolve but it also returns a function callback that can be used to cache that a key could not be resolved.

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

Source from the content-addressed store, hash-verified

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)
22
23 // Provide provides the given keys to the network.
24 // This lets the k-closest peers to the key know that we are providing it.

Callers 1

doP2pMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected