discovery

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Provider) Close

func (_m *Provider) Close() error

Close provides a mock function with given fields:

func (*Provider) Deregister

func (_m *Provider) Deregister() error

Deregister provides a mock function with given fields:

func (*Provider) DiscoverPeers

func (_m *Provider) DiscoverPeers() ([]string, error)

DiscoverPeers provides a mock function with given fields:

func (*Provider) EXPECT

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) ID

func (_m *Provider) ID() string

ID provides a mock function with given fields:

func (*Provider) Initialize

func (_m *Provider) Initialize() error

Initialize provides a mock function with given fields:

func (*Provider) Register

func (_m *Provider) Register() error

Register provides a mock function with given fields:

type Provider_Close_Call

type Provider_Close_Call struct {
	*mock.Call
}

Provider_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Provider_Close_Call) Return

func (*Provider_Close_Call) Run

func (_c *Provider_Close_Call) Run(run func()) *Provider_Close_Call

func (*Provider_Close_Call) RunAndReturn

func (_c *Provider_Close_Call) RunAndReturn(run func() error) *Provider_Close_Call

type Provider_Deregister_Call

type Provider_Deregister_Call struct {
	*mock.Call
}

Provider_Deregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deregister'

func (*Provider_Deregister_Call) Return

func (*Provider_Deregister_Call) Run

func (*Provider_Deregister_Call) RunAndReturn

func (_c *Provider_Deregister_Call) RunAndReturn(run func() error) *Provider_Deregister_Call

type Provider_DiscoverPeers_Call

type Provider_DiscoverPeers_Call struct {
	*mock.Call
}

Provider_DiscoverPeers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DiscoverPeers'

func (*Provider_DiscoverPeers_Call) Return

func (*Provider_DiscoverPeers_Call) Run

func (*Provider_DiscoverPeers_Call) RunAndReturn

func (_c *Provider_DiscoverPeers_Call) RunAndReturn(run func() ([]string, error)) *Provider_DiscoverPeers_Call

type Provider_Expecter

type Provider_Expecter struct {
	// contains filtered or unexported fields
}

func (*Provider_Expecter) Close

Close is a helper method to define mock.On call

func (*Provider_Expecter) Deregister

func (_e *Provider_Expecter) Deregister() *Provider_Deregister_Call

Deregister is a helper method to define mock.On call

func (*Provider_Expecter) DiscoverPeers

func (_e *Provider_Expecter) DiscoverPeers() *Provider_DiscoverPeers_Call

DiscoverPeers is a helper method to define mock.On call

func (*Provider_Expecter) ID

ID is a helper method to define mock.On call

func (*Provider_Expecter) Initialize

func (_e *Provider_Expecter) Initialize() *Provider_Initialize_Call

Initialize is a helper method to define mock.On call

func (*Provider_Expecter) Register

func (_e *Provider_Expecter) Register() *Provider_Register_Call

Register is a helper method to define mock.On call

type Provider_ID_Call

type Provider_ID_Call struct {
	*mock.Call
}

Provider_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*Provider_ID_Call) Return

func (_c *Provider_ID_Call) Return(_a0 string) *Provider_ID_Call

func (*Provider_ID_Call) Run

func (_c *Provider_ID_Call) Run(run func()) *Provider_ID_Call

func (*Provider_ID_Call) RunAndReturn

func (_c *Provider_ID_Call) RunAndReturn(run func() string) *Provider_ID_Call

type Provider_Initialize_Call

type Provider_Initialize_Call struct {
	*mock.Call
}

Provider_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'

func (*Provider_Initialize_Call) Return

func (*Provider_Initialize_Call) Run

func (*Provider_Initialize_Call) RunAndReturn

func (_c *Provider_Initialize_Call) RunAndReturn(run func() error) *Provider_Initialize_Call

type Provider_Register_Call

type Provider_Register_Call struct {
	*mock.Call
}

Provider_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'

func (*Provider_Register_Call) Return

func (*Provider_Register_Call) Run

func (_c *Provider_Register_Call) Run(run func()) *Provider_Register_Call

func (*Provider_Register_Call) RunAndReturn

func (_c *Provider_Register_Call) RunAndReturn(run func() error) *Provider_Register_Call

Jump to

Keyboard shortcuts

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