powergate: github.com/textileio/powergate/tests/mocks Index | Files

package mocks

import "github.com/textileio/powergate/tests/mocks"

Index

Package Files

mocks.go

type LrMock Uses

type LrMock struct{}

LrMock provides a mock LocationResolver.

func (*LrMock) Resolve Uses

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

Resolve implements Resolve.

type P2pHostMock Uses

type P2pHostMock struct{}

P2pHostMock provides a mock P2PHost.

func (*P2pHostMock) Addrs Uses

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

Addrs implements Addrs.

func (*P2pHostMock) GetAgentVersion Uses

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

GetAgentVersion implements GetAgentVersion.

func (*P2pHostMock) Ping Uses

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

Ping implements Ping.

Package mocks imports 5 packages (graph). Updated 2020-07-20. Refresh now. Tools for package owners.