Documentation ¶
Overview ¶
Package mocknetwork is a generated GoMock package.
Index ¶
- type BasicResolver
- type BlockExchange
- type BlockExchangeFetcher
- type BlocksPromise
- type BlocksRequest
- type Codec
- type Compressor
- type Conduit
- type Connection
- type Connector
- type Decoder
- type Encoder
- type Engine
- func (_m *Engine) Done() <-chan struct{}
- func (_m *Engine) Process(channel network.Channel, originID flow.Identifier, event interface{}) error
- func (_m *Engine) ProcessLocal(event interface{}) error
- func (_m *Engine) Ready() <-chan struct{}
- func (_m *Engine) Submit(channel network.Channel, originID flow.Identifier, event interface{})
- func (_m *Engine) SubmitLocal(event interface{})
- type MessageProcessor
- type MessageQueue
- type MessageValidator
- type Middleware
- func (_m *Middleware) Done() <-chan struct{}
- func (_m *Middleware) Ping(targetID flow.Identifier) (message.PingResponse, time.Duration, error)
- func (_m *Middleware) Publish(msg *message.Message, channel network.Channel) error
- func (_m *Middleware) Ready() <-chan struct{}
- func (_m *Middleware) SendDirect(msg *message.Message, targetID flow.Identifier) error
- func (_m *Middleware) SetOverlay(_a0 network.Overlay)
- func (_m *Middleware) Start(_a0 irrecoverable.SignalerContext)
- func (_m *Middleware) Subscribe(channel network.Channel) error
- func (_m *Middleware) Unsubscribe(channel network.Channel) error
- func (_m *Middleware) UpdateAllowList()
- func (_m *Middleware) UpdateNodeAddresses()
- type MockNetwork
- func (m *MockNetwork) Done() <-chan struct{}
- func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
- func (m *MockNetwork) Ready() <-chan struct{}
- func (m *MockNetwork) Register(arg0 network.Channel, arg1 network.Engine) (network.Conduit, error)
- func (m *MockNetwork) RegisterBlockExchange(arg0 network.Channel, arg1 go_ipfs_blockstore.Blockstore) (network.BlockExchange, error)
- func (m *MockNetwork) Start(arg0 irrecoverable.SignalerContext)
- type MockNetworkMockRecorder
- func (mr *MockNetworkMockRecorder) Done() *gomock.Call
- func (mr *MockNetworkMockRecorder) Ready() *gomock.Call
- func (mr *MockNetworkMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkMockRecorder) RegisterBlockExchange(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNetworkMockRecorder) Start(arg0 interface{}) *gomock.Call
- type Network
- func (_m *Network) Done() <-chan struct{}
- func (_m *Network) Ready() <-chan struct{}
- func (_m *Network) Register(channel network.Channel, engine network.Engine) (network.Conduit, error)
- func (_m *Network) RegisterBlockExchange(channel network.Channel, store blockstore.Blockstore) (network.BlockExchange, error)
- func (_m *Network) Start(_a0 irrecoverable.SignalerContext)
- type Overlay
- type PingInfoProvider
- type SubscriptionManager
- func (_m *SubscriptionManager) Channels() network.ChannelList
- func (_m *SubscriptionManager) GetEngine(channel network.Channel) (network.Engine, error)
- func (_m *SubscriptionManager) Register(channel network.Channel, engine network.Engine) error
- func (_m *SubscriptionManager) Unregister(channel network.Channel) error
- type Topology
- type WriteCloseFlusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicResolver ¶ added in v0.21.0
BasicResolver is an autogenerated mock type for the BasicResolver type
func (*BasicResolver) LookupIPAddr ¶ added in v0.21.0
LookupIPAddr provides a mock function with given fields: _a0, _a1
type BlockExchange ¶ added in v0.23.2
BlockExchange is an autogenerated mock type for the BlockExchange type
func (*BlockExchange) Close ¶ added in v0.23.2
func (_m *BlockExchange) Close()
Close provides a mock function with given fields:
func (*BlockExchange) GetBlocks ¶ added in v0.23.2
func (_m *BlockExchange) GetBlocks(cids ...cid.Cid) network.BlocksPromise
GetBlocks provides a mock function with given fields: cids
func (*BlockExchange) GetSession ¶ added in v0.23.2
func (_m *BlockExchange) GetSession(ctx context.Context) network.BlockExchangeFetcher
GetSession provides a mock function with given fields: ctx
type BlockExchangeFetcher ¶ added in v0.23.2
BlockExchangeFetcher is an autogenerated mock type for the BlockExchangeFetcher type
func (*BlockExchangeFetcher) GetBlocks ¶ added in v0.23.2
func (_m *BlockExchangeFetcher) GetBlocks(cids ...cid.Cid) network.BlocksPromise
GetBlocks provides a mock function with given fields: cids
type BlocksPromise ¶ added in v0.23.2
BlocksPromise is an autogenerated mock type for the BlocksPromise type
func (*BlocksPromise) ForEach ¶ added in v0.23.2
func (_m *BlocksPromise) ForEach(cb func(blocks.Block)) network.BlocksRequest
ForEach provides a mock function with given fields: cb
type BlocksRequest ¶ added in v0.23.2
BlocksRequest is an autogenerated mock type for the BlocksRequest type
type Codec ¶
Codec is an autogenerated mock type for the Codec type
func (*Codec) NewDecoder ¶
NewDecoder provides a mock function with given fields: r
type Compressor ¶ added in v0.23.1
Compressor is an autogenerated mock type for the Compressor type
func (*Compressor) NewReader ¶ added in v0.23.1
func (_m *Compressor) NewReader(_a0 io.Reader) (io.ReadCloser, error)
NewReader provides a mock function with given fields: _a0
func (*Compressor) NewWriter ¶ added in v0.23.1
func (_m *Compressor) NewWriter(_a0 io.Writer) (network.WriteCloseFlusher, error)
NewWriter provides a mock function with given fields: _a0
type Conduit ¶
Conduit is an autogenerated mock type for the Conduit type
func (*Conduit) Multicast ¶
func (_m *Conduit) Multicast(event interface{}, num uint, targetIDs ...flow.Identifier) error
Multicast provides a mock function with given fields: event, num, targetIDs
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func (*Connection) Receive ¶
func (_m *Connection) Receive() (interface{}, error)
Receive provides a mock function with given fields:
func (*Connection) Send ¶
func (_m *Connection) Send(msg interface{}) error
Send provides a mock function with given fields: msg
type Engine ¶
Engine is an autogenerated mock type for the Engine type
func (*Engine) Done ¶ added in v0.23.0
func (_m *Engine) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*Engine) Process ¶
func (_m *Engine) Process(channel network.Channel, originID flow.Identifier, event interface{}) error
Process provides a mock function with given fields: channel, originID, event
func (*Engine) ProcessLocal ¶
ProcessLocal provides a mock function with given fields: event
func (*Engine) Ready ¶ added in v0.23.0
func (_m *Engine) Ready() <-chan struct{}
Ready provides a mock function with given fields:
func (*Engine) Submit ¶
func (_m *Engine) Submit(channel network.Channel, originID flow.Identifier, event interface{})
Submit provides a mock function with given fields: channel, originID, event
func (*Engine) SubmitLocal ¶
func (_m *Engine) SubmitLocal(event interface{})
SubmitLocal provides a mock function with given fields: event
type MessageProcessor ¶ added in v0.17.6
MessageProcessor is an autogenerated mock type for the MessageProcessor type
func (*MessageProcessor) Process ¶ added in v0.17.6
func (_m *MessageProcessor) Process(channel network.Channel, originID flow.Identifier, message interface{}) error
Process provides a mock function with given fields: channel, originID, message
type MessageQueue ¶
MessageQueue is an autogenerated mock type for the MessageQueue type
func (*MessageQueue) Insert ¶
func (_m *MessageQueue) Insert(message interface{}) error
Insert provides a mock function with given fields: message
func (*MessageQueue) Len ¶
func (_m *MessageQueue) Len() int
Len provides a mock function with given fields:
func (*MessageQueue) Remove ¶
func (_m *MessageQueue) Remove() interface{}
Remove provides a mock function with given fields:
type MessageValidator ¶
MessageValidator is an autogenerated mock type for the MessageValidator type
type Middleware ¶
Middleware is an autogenerated mock type for the Middleware type
func (*Middleware) Done ¶ added in v0.23.0
func (_m *Middleware) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*Middleware) Ping ¶
func (_m *Middleware) Ping(targetID flow.Identifier) (message.PingResponse, time.Duration, error)
Ping provides a mock function with given fields: targetID
func (*Middleware) Ready ¶ added in v0.23.0
func (_m *Middleware) Ready() <-chan struct{}
Ready provides a mock function with given fields:
func (*Middleware) SendDirect ¶
func (_m *Middleware) SendDirect(msg *message.Message, targetID flow.Identifier) error
SendDirect provides a mock function with given fields: msg, targetID
func (*Middleware) SetOverlay ¶ added in v0.23.0
func (_m *Middleware) SetOverlay(_a0 network.Overlay)
SetOverlay provides a mock function with given fields: _a0
func (*Middleware) Start ¶
func (_m *Middleware) Start(_a0 irrecoverable.SignalerContext)
Start provides a mock function with given fields: _a0
func (*Middleware) Subscribe ¶
func (_m *Middleware) Subscribe(channel network.Channel) error
Subscribe provides a mock function with given fields: channel
func (*Middleware) Unsubscribe ¶
func (_m *Middleware) Unsubscribe(channel network.Channel) error
Unsubscribe provides a mock function with given fields: channel
func (*Middleware) UpdateAllowList ¶
func (_m *Middleware) UpdateAllowList()
UpdateAllowList provides a mock function with given fields:
func (*Middleware) UpdateNodeAddresses ¶ added in v0.21.1
func (_m *Middleware) UpdateNodeAddresses()
UpdateNodeAddresses provides a mock function with given fields:
type MockNetwork ¶ added in v0.23.0
type MockNetwork struct {
// contains filtered or unexported fields
}
MockNetwork is a mock of Network interface
func NewMockNetwork ¶ added in v0.23.0
func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork
NewMockNetwork creates a new mock instance
func (*MockNetwork) Done ¶ added in v0.23.0
func (m *MockNetwork) Done() <-chan struct{}
Done mocks base method
func (*MockNetwork) EXPECT ¶ added in v0.23.0
func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockNetwork) Ready ¶ added in v0.23.0
func (m *MockNetwork) Ready() <-chan struct{}
Ready mocks base method
func (*MockNetwork) RegisterBlockExchange ¶ added in v0.23.2
func (m *MockNetwork) RegisterBlockExchange(arg0 network.Channel, arg1 go_ipfs_blockstore.Blockstore) (network.BlockExchange, error)
RegisterBlockExchange mocks base method
func (*MockNetwork) Start ¶ added in v0.23.0
func (m *MockNetwork) Start(arg0 irrecoverable.SignalerContext)
Start mocks base method
type MockNetworkMockRecorder ¶ added in v0.23.0
type MockNetworkMockRecorder struct {
// contains filtered or unexported fields
}
MockNetworkMockRecorder is the mock recorder for MockNetwork
func (*MockNetworkMockRecorder) Done ¶ added in v0.23.0
func (mr *MockNetworkMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done
func (*MockNetworkMockRecorder) Ready ¶ added in v0.23.0
func (mr *MockNetworkMockRecorder) Ready() *gomock.Call
Ready indicates an expected call of Ready
func (*MockNetworkMockRecorder) Register ¶ added in v0.23.0
func (mr *MockNetworkMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call
Register indicates an expected call of Register
func (*MockNetworkMockRecorder) RegisterBlockExchange ¶ added in v0.23.2
func (mr *MockNetworkMockRecorder) RegisterBlockExchange(arg0, arg1 interface{}) *gomock.Call
RegisterBlockExchange indicates an expected call of RegisterBlockExchange
func (*MockNetworkMockRecorder) Start ¶ added in v0.23.0
func (mr *MockNetworkMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
type Network ¶ added in v0.23.0
Network is an autogenerated mock type for the Network type
func (*Network) Done ¶ added in v0.23.0
func (_m *Network) Done() <-chan struct{}
Done provides a mock function with given fields:
func (*Network) Ready ¶ added in v0.23.0
func (_m *Network) Ready() <-chan struct{}
Ready provides a mock function with given fields:
func (*Network) Register ¶ added in v0.23.0
func (_m *Network) Register(channel network.Channel, engine network.Engine) (network.Conduit, error)
Register provides a mock function with given fields: channel, engine
func (*Network) RegisterBlockExchange ¶ added in v0.23.2
func (_m *Network) RegisterBlockExchange(channel network.Channel, store blockstore.Blockstore) (network.BlockExchange, error)
RegisterBlockExchange provides a mock function with given fields: channel, store
func (*Network) Start ¶ added in v0.23.0
func (_m *Network) Start(_a0 irrecoverable.SignalerContext)
Start provides a mock function with given fields: _a0
type Overlay ¶
Overlay is an autogenerated mock type for the Overlay type
func (*Overlay) Identities ¶ added in v0.21.1
func (_m *Overlay) Identities() flow.IdentityList
Identities provides a mock function with given fields:
type PingInfoProvider ¶ added in v0.17.0
PingInfoProvider is an autogenerated mock type for the PingInfoProvider type
func (*PingInfoProvider) HotstuffView ¶ added in v0.22.10
func (_m *PingInfoProvider) HotstuffView() uint64
HotstuffView provides a mock function with given fields:
func (*PingInfoProvider) SealedBlockHeight ¶ added in v0.17.1
func (_m *PingInfoProvider) SealedBlockHeight() uint64
SealedBlockHeight provides a mock function with given fields:
func (*PingInfoProvider) SoftwareVersion ¶ added in v0.17.0
func (_m *PingInfoProvider) SoftwareVersion() string
SoftwareVersion provides a mock function with given fields:
type SubscriptionManager ¶
SubscriptionManager is an autogenerated mock type for the SubscriptionManager type
func (*SubscriptionManager) Channels ¶ added in v0.14.0
func (_m *SubscriptionManager) Channels() network.ChannelList
Channels provides a mock function with given fields:
func (*SubscriptionManager) GetEngine ¶
GetEngine provides a mock function with given fields: channel
func (*SubscriptionManager) Register ¶
Register provides a mock function with given fields: channel, engine
func (*SubscriptionManager) Unregister ¶
func (_m *SubscriptionManager) Unregister(channel network.Channel) error
Unregister provides a mock function with given fields: channel
type Topology ¶
Topology is an autogenerated mock type for the Topology type
func (*Topology) GenerateFanout ¶
func (_m *Topology) GenerateFanout(ids flow.IdentityList, channels network.ChannelList) (flow.IdentityList, error)
GenerateFanout provides a mock function with given fields: ids, channels
type WriteCloseFlusher ¶ added in v0.23.1
WriteCloseFlusher is an autogenerated mock type for the WriteCloseFlusher type
func (*WriteCloseFlusher) Close ¶ added in v0.23.1
func (_m *WriteCloseFlusher) Close() error
Close provides a mock function with given fields:
func (*WriteCloseFlusher) Flush ¶ added in v0.23.1
func (_m *WriteCloseFlusher) Flush() error
Flush provides a mock function with given fields:
Source Files ¶
- basic_resolver.go
- block_exchange.go
- block_exchange_fetcher.go
- blocks_promise.go
- blocks_request.go
- codec.go
- compressor.go
- conduit.go
- connection.go
- connector.go
- decoder.go
- encoder.go
- engine.go
- message_processor.go
- message_queue.go
- message_validator.go
- middleware.go
- mock_network.go
- network.go
- overlay.go
- ping_info_provider.go
- subscription_manager.go
- topology.go
- write_close_flusher.go