mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 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 Discoverer

type Discoverer struct {
	mock.Mock
}

Discoverer is an autogenerated mock type for the Discoverer type

func (*Discoverer) Add

func (_m *Discoverer) Add(_a0 *peer.Peer)

Add provides a mock function with given fields: _a0

func (*Discoverer) AddProvider

func (_m *Discoverer) AddProvider(provider discovery.Provider) error

AddProvider provides a mock function with given fields: provider

func (*Discoverer) FindByContent

func (_m *Discoverer) FindByContent(ctx context.Context, contentHash string, opts ...discovery.Option) ([]crypto.Fingerprint, error)

FindByContent provides a mock function with given fields: ctx, contentHash, opts

func (*Discoverer) FindByFingerprint

func (_m *Discoverer) FindByFingerprint(ctx context.Context, fingerprint crypto.Fingerprint, opts ...discovery.Option) ([]*peer.Peer, error)

FindByFingerprint provides a mock function with given fields: ctx, fingerprint, opts

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func (*Provider) FindByContent

func (_m *Provider) FindByContent(ctx context.Context, contentHash string, opts ...discovery.Option) ([]crypto.Fingerprint, error)

FindByContent provides a mock function with given fields: ctx, contentHash, opts

func (*Provider) FindByFingerprint

func (_m *Provider) FindByFingerprint(ctx context.Context, fingerprint crypto.Fingerprint, opts ...discovery.Option) ([]*peer.Peer, error)

FindByFingerprint provides a mock function with given fields: ctx, fingerprint, opts

Jump to

Keyboard shortcuts

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