mocks

package
v0.1.1-pre.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LrMock

type LrMock struct{}

LrMock provides a mock LocationResolver.

func (*LrMock) Resolve

func (lr *LrMock) Resolve(mas []multiaddr.Multiaddr) (iplocation.Location, error)

Resolve implements Resolve.

type P2pHostMock

type P2pHostMock struct{}

P2pHostMock provides a mock P2PHost.

func (*P2pHostMock) Addrs

func (hm *P2pHostMock) Addrs(id peer.ID) []multiaddr.Multiaddr

Addrs implements Addrs.

func (*P2pHostMock) GetAgentVersion

func (hm *P2pHostMock) GetAgentVersion(id peer.ID) string

GetAgentVersion implements GetAgentVersion.

func (*P2pHostMock) Ping

func (hm *P2pHostMock) Ping(ctx context.Context, pid peer.ID) bool

Ping implements Ping.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL