nodelist

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package nodelist is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockNodeList

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

MockNodeList is a mock of NodeList interface

func NewMockNodeList

func NewMockNodeList(ctrl *gomock.Controller) *MockNodeList

NewMockNodeList creates a new mock instance

func (*MockNodeList) Configure

func (m *MockNodeList) Configure(nodeID model.NodeID, address string) error

Configure mocks base method

func (*MockNodeList) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockNodeList) Start

func (m *MockNodeList) Start()

Start mocks base method

func (*MockNodeList) Stop

func (m *MockNodeList) Stop()

Stop mocks base method

type MockNodeListMockRecorder

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

MockNodeListMockRecorder is the mock recorder for MockNodeList

func (*MockNodeListMockRecorder) Configure

func (mr *MockNodeListMockRecorder) Configure(nodeID, address interface{}) *gomock.Call

Configure indicates an expected call of Configure

func (*MockNodeListMockRecorder) Start

func (mr *MockNodeListMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start

func (*MockNodeListMockRecorder) Stop

func (mr *MockNodeListMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop

type NodeList

type NodeList interface {
	// Configure configures the NodeList. Must be called before Start().
	Configure(nodeID model.NodeID, address string) error
	Start()
	Stop()
}

NodeList is one of the applications built on top of the Nuts network which is used for discovering new nodes.

func NewNodeList

func NewNodeList(log documentlog.DocumentLog, p2pNetwork p2p.P2PNetwork) NodeList

Jump to

Keyboard shortcuts

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