mocks

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer struct {
	mock.Mock
}

Discoverer is an autogenerated mock type for the Discoverer type

func (*Discoverer) Lookup added in v0.5.0

func (_m *Discoverer) Lookup(ctx context.Context, opts ...peer.LookupOption) (<-chan *peer.Peer, error)

Lookup provides a mock function with given fields: ctx, opts

type PeerStorer added in v0.5.0

type PeerStorer struct {
	mock.Mock
}

PeerStorer is an autogenerated mock type for the PeerStorer type

func (*PeerStorer) Add added in v0.5.0

func (_m *PeerStorer) Add(_a0 *peer.Peer, _a1 bool)

Add provides a mock function with given fields: _a0, _a1

func (*PeerStorer) AddDiscoverer added in v0.5.0

func (_m *PeerStorer) AddDiscoverer(_a0 discovery.Discoverer) error

AddDiscoverer provides a mock function with given fields: _a0

func (*PeerStorer) Lookup added in v0.5.0

func (_m *PeerStorer) Lookup(_a0 context.Context, _a1 ...peer.LookupOption) (<-chan *peer.Peer, error)

Lookup provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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