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

Method Net

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

Net returns the network interface.

()

Source from the content-addressed store, hash-verified

13type Router interface {
14 // Net returns the network interface.
15 Net() peernet.Network
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)

Callers 3

serverCommandFunction · 0.95
doP2pMethod · 0.65
NewReaderFunction · 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