Documentation ¶
Index ¶
- type Provider
- type Provider_Close_Call
- type Provider_Deregister_Call
- type Provider_DiscoverPeers_Call
- type Provider_Expecter
- func (_e *Provider_Expecter) Close() *Provider_Close_Call
- func (_e *Provider_Expecter) Deregister() *Provider_Deregister_Call
- func (_e *Provider_Expecter) DiscoverPeers() *Provider_DiscoverPeers_Call
- func (_e *Provider_Expecter) ID() *Provider_ID_Call
- func (_e *Provider_Expecter) Initialize() *Provider_Initialize_Call
- func (_e *Provider_Expecter) Register() *Provider_Register_Call
- type Provider_ID_Call
- type Provider_Initialize_Call
- type Provider_Register_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
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) Deregister ¶
Deregister provides a mock function with given fields:
func (*Provider) DiscoverPeers ¶
DiscoverPeers provides a mock function with given fields:
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) Initialize ¶
Initialize provides a mock function with given fields:
type Provider_Close_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 (_c *Provider_Close_Call) Return(_a0 error) *Provider_Close_Call
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 ¶
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 (_c *Provider_Deregister_Call) Return(_a0 error) *Provider_Deregister_Call
func (*Provider_Deregister_Call) Run ¶
func (_c *Provider_Deregister_Call) Run(run func()) *Provider_Deregister_Call
func (*Provider_Deregister_Call) RunAndReturn ¶
func (_c *Provider_Deregister_Call) RunAndReturn(run func() error) *Provider_Deregister_Call
type Provider_DiscoverPeers_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 (_c *Provider_DiscoverPeers_Call) Return(_a0 []string, _a1 error) *Provider_DiscoverPeers_Call
func (*Provider_DiscoverPeers_Call) Run ¶
func (_c *Provider_DiscoverPeers_Call) Run(run func()) *Provider_DiscoverPeers_Call
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 ¶
func (_e *Provider_Expecter) Close() *Provider_Close_Call
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 ¶
func (_e *Provider_Expecter) ID() *Provider_ID_Call
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 ¶
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 ¶
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 (_c *Provider_Initialize_Call) Return(_a0 error) *Provider_Initialize_Call
func (*Provider_Initialize_Call) Run ¶
func (_c *Provider_Initialize_Call) Run(run func()) *Provider_Initialize_Call
func (*Provider_Initialize_Call) RunAndReturn ¶
func (_c *Provider_Initialize_Call) RunAndReturn(run func() error) *Provider_Initialize_Call
type Provider_Register_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 (_c *Provider_Register_Call) Return(_a0 error) *Provider_Register_Call
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