registry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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 MockNodeRegistry

type MockNodeRegistry struct {
	mock.Mock
}

MockNodeRegistry is an autogenerated mock type for the NodeRegistry type

func NewMockNodeRegistry

func NewMockNodeRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNodeRegistry

NewMockNodeRegistry creates a new instance of MockNodeRegistry. 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 (*MockNodeRegistry) EXPECT

func (*MockNodeRegistry) GetNode

func (_m *MockNodeRegistry) GetNode(_a0 uint32) (*registry.Node, error)

GetNode provides a mock function with given fields: _a0

func (*MockNodeRegistry) GetNodes

func (_m *MockNodeRegistry) GetNodes() ([]registry.Node, error)

GetNodes provides a mock function with given fields:

func (*MockNodeRegistry) OnChangedNode

func (_m *MockNodeRegistry) OnChangedNode(_a0 uint32) (<-chan registry.Node, registry.CancelSubscription)

OnChangedNode provides a mock function with given fields: _a0

func (*MockNodeRegistry) OnNewNodes

func (_m *MockNodeRegistry) OnNewNodes() (<-chan []registry.Node, registry.CancelSubscription)

OnNewNodes provides a mock function with given fields:

func (*MockNodeRegistry) Stop added in v0.1.1

func (_m *MockNodeRegistry) Stop()

Stop provides a mock function with given fields:

type MockNodeRegistry_Expecter

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

func (*MockNodeRegistry_Expecter) GetNode

func (_e *MockNodeRegistry_Expecter) GetNode(_a0 interface{}) *MockNodeRegistry_GetNode_Call

GetNode is a helper method to define mock.On call

  • _a0 uint32

func (*MockNodeRegistry_Expecter) GetNodes

GetNodes is a helper method to define mock.On call

func (*MockNodeRegistry_Expecter) OnChangedNode

func (_e *MockNodeRegistry_Expecter) OnChangedNode(_a0 interface{}) *MockNodeRegistry_OnChangedNode_Call

OnChangedNode is a helper method to define mock.On call

  • _a0 uint32

func (*MockNodeRegistry_Expecter) OnNewNodes

OnNewNodes is a helper method to define mock.On call

func (*MockNodeRegistry_Expecter) Stop added in v0.1.1

Stop is a helper method to define mock.On call

type MockNodeRegistry_GetNode_Call

type MockNodeRegistry_GetNode_Call struct {
	*mock.Call
}

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

func (*MockNodeRegistry_GetNode_Call) Return

func (*MockNodeRegistry_GetNode_Call) Run

func (*MockNodeRegistry_GetNode_Call) RunAndReturn

type MockNodeRegistry_GetNodes_Call

type MockNodeRegistry_GetNodes_Call struct {
	*mock.Call
}

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

func (*MockNodeRegistry_GetNodes_Call) Return

func (*MockNodeRegistry_GetNodes_Call) Run

func (*MockNodeRegistry_GetNodes_Call) RunAndReturn

type MockNodeRegistry_OnChangedNode_Call

type MockNodeRegistry_OnChangedNode_Call struct {
	*mock.Call
}

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

func (*MockNodeRegistry_OnChangedNode_Call) Return

func (*MockNodeRegistry_OnChangedNode_Call) Run

func (*MockNodeRegistry_OnChangedNode_Call) RunAndReturn

type MockNodeRegistry_OnNewNodes_Call

type MockNodeRegistry_OnNewNodes_Call struct {
	*mock.Call
}

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

func (*MockNodeRegistry_OnNewNodes_Call) Return

func (*MockNodeRegistry_OnNewNodes_Call) Run

func (*MockNodeRegistry_OnNewNodes_Call) RunAndReturn

type MockNodeRegistry_Stop_Call added in v0.1.1

type MockNodeRegistry_Stop_Call struct {
	*mock.Call
}

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

func (*MockNodeRegistry_Stop_Call) Return added in v0.1.1

func (*MockNodeRegistry_Stop_Call) Run added in v0.1.1

func (*MockNodeRegistry_Stop_Call) RunAndReturn added in v0.1.1

func (_c *MockNodeRegistry_Stop_Call) RunAndReturn(run func()) *MockNodeRegistry_Stop_Call

type MockNodesContract

type MockNodesContract struct {
	mock.Mock
}

MockNodesContract is an autogenerated mock type for the NodesContract type

func NewMockNodesContract

func NewMockNodesContract(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockNodesContract

NewMockNodesContract creates a new instance of MockNodesContract. 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 (*MockNodesContract) AllNodes

func (_m *MockNodesContract) AllNodes(opts *bind.CallOpts) ([]abis.NodesNodeWithId, error)

AllNodes provides a mock function with given fields: opts

func (*MockNodesContract) EXPECT

type MockNodesContract_AllNodes_Call

type MockNodesContract_AllNodes_Call struct {
	*mock.Call
}

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

func (*MockNodesContract_AllNodes_Call) Return

func (*MockNodesContract_AllNodes_Call) Run

func (*MockNodesContract_AllNodes_Call) RunAndReturn

type MockNodesContract_Expecter

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

func (*MockNodesContract_Expecter) AllNodes

func (_e *MockNodesContract_Expecter) AllNodes(opts interface{}) *MockNodesContract_AllNodes_Call

AllNodes is a helper method to define mock.On call

  • opts *bind.CallOpts

Jump to

Keyboard shortcuts

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