mocks

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusData

type ConsensusData struct {
	mock.Mock
}

ConsensusData is an autogenerated mock type for the ConsensusData type

func (*ConsensusData) GetOneValidator

func (_m *ConsensusData) GetOneValidator() *consensus.Validator

GetOneValidator provides a mock function with given fields:

func (*ConsensusData) GetOneValidatorForEachConsensusProcess

func (_m *ConsensusData) GetOneValidatorForEachConsensusProcess() map[int]*consensus.Validator

GetOneValidatorForEachConsensusProcess provides a mock function with given fields:

type GRPCDialer

type GRPCDialer struct {
	mock.Mock
}

GRPCDialer is an autogenerated mock type for the GRPCDialer type

func (*GRPCDialer) Dial

func (_m *GRPCDialer) Dial(ctx context.Context, peerID peer.ID, dialOpts ...grpc.DialOption) (*grpc.ClientConn, error)

Dial provides a mock function with given fields: ctx, peerID, dialOpts

type HighwayDiscoverer

type HighwayDiscoverer struct {
	mock.Mock
}

HighwayDiscoverer is an autogenerated mock type for the HighwayDiscoverer type

func (*HighwayDiscoverer) DiscoverHighway

func (_m *HighwayDiscoverer) DiscoverHighway(discoverPeerAddress string, shardsStr []string) (map[string][]rpcclient.HighwayAddr, error)

DiscoverHighway provides a mock function with given fields: discoverPeerAddress, shardsStr

type Host

type Host struct {
	mock.Mock
}

Host is an autogenerated mock type for the Host type

func (*Host) Addrs

func (_m *Host) Addrs() []multiaddr.Multiaddr

Addrs provides a mock function with given fields:

func (*Host) Close

func (_m *Host) Close() error

Close provides a mock function with given fields:

func (*Host) ConnManager

func (_m *Host) ConnManager() connmgr.ConnManager

ConnManager provides a mock function with given fields:

func (*Host) Connect

func (_m *Host) Connect(ctx context.Context, pi peer.AddrInfo) error

Connect provides a mock function with given fields: ctx, pi

func (*Host) EventBus

func (_m *Host) EventBus() event.Bus

EventBus provides a mock function with given fields:

func (*Host) ID

func (_m *Host) ID() peer.ID

ID provides a mock function with given fields:

func (*Host) Mux

func (_m *Host) Mux() protocol.Switch

Mux provides a mock function with given fields:

func (*Host) Network

func (_m *Host) Network() network.Network

Network provides a mock function with given fields:

func (*Host) NewStream

func (_m *Host) NewStream(ctx context.Context, p peer.ID, pids ...protocol.ID) (network.Stream, error)

NewStream provides a mock function with given fields: ctx, p, pids

func (*Host) Peerstore

func (_m *Host) Peerstore() peerstore.Peerstore

Peerstore provides a mock function with given fields:

func (*Host) RemoveStreamHandler

func (_m *Host) RemoveStreamHandler(pid protocol.ID)

RemoveStreamHandler provides a mock function with given fields: pid

func (*Host) SetStreamHandler

func (_m *Host) SetStreamHandler(pid protocol.ID, handler network.StreamHandler)

SetStreamHandler provides a mock function with given fields: pid, handler

func (*Host) SetStreamHandlerMatch

func (_m *Host) SetStreamHandlerMatch(_a0 protocol.ID, _a1 func(string) bool, _a2 network.StreamHandler)

SetStreamHandlerMatch provides a mock function with given fields: _a0, _a1, _a2

type Network

type Network struct {
	mock.Mock
}

Network is an autogenerated mock type for the Network type

func (*Network) Close

func (_m *Network) Close() error

Close provides a mock function with given fields:

func (*Network) ClosePeer

func (_m *Network) ClosePeer(_a0 peer.ID) error

ClosePeer provides a mock function with given fields: _a0

func (*Network) Connectedness

func (_m *Network) Connectedness(_a0 peer.ID) network.Connectedness

Connectedness provides a mock function with given fields: _a0

func (*Network) Conns

func (_m *Network) Conns() []network.Conn

Conns provides a mock function with given fields:

func (*Network) ConnsToPeer

func (_m *Network) ConnsToPeer(p peer.ID) []network.Conn

ConnsToPeer provides a mock function with given fields: p

func (*Network) DialPeer

func (_m *Network) DialPeer(_a0 context.Context, _a1 peer.ID) (network.Conn, error)

DialPeer provides a mock function with given fields: _a0, _a1

func (*Network) InterfaceListenAddresses

func (_m *Network) InterfaceListenAddresses() ([]multiaddr.Multiaddr, error)

InterfaceListenAddresses provides a mock function with given fields:

func (*Network) Listen

func (_m *Network) Listen(_a0 ...multiaddr.Multiaddr) error

Listen provides a mock function with given fields: _a0

func (*Network) ListenAddresses

func (_m *Network) ListenAddresses() []multiaddr.Multiaddr

ListenAddresses provides a mock function with given fields:

func (*Network) LocalPeer

func (_m *Network) LocalPeer() peer.ID

LocalPeer provides a mock function with given fields:

func (*Network) NewStream

func (_m *Network) NewStream(_a0 context.Context, _a1 peer.ID) (network.Stream, error)

NewStream provides a mock function with given fields: _a0, _a1

func (*Network) Notify

func (_m *Network) Notify(_a0 network.Notifiee)

Notify provides a mock function with given fields: _a0

func (*Network) Peers

func (_m *Network) Peers() []peer.ID

Peers provides a mock function with given fields:

func (*Network) Peerstore

func (_m *Network) Peerstore() peerstore.Peerstore

Peerstore provides a mock function with given fields:

func (*Network) Process

func (_m *Network) Process() goprocess.Process

Process provides a mock function with given fields:

func (*Network) SetConnHandler

func (_m *Network) SetConnHandler(_a0 network.ConnHandler)

SetConnHandler provides a mock function with given fields: _a0

func (*Network) SetStreamHandler

func (_m *Network) SetStreamHandler(_a0 network.StreamHandler)

SetStreamHandler provides a mock function with given fields: _a0

func (*Network) StopNotify

func (_m *Network) StopNotify(_a0 network.Notifiee)

StopNotify provides a mock function with given fields: _a0

type Registerer

type Registerer struct {
	mock.Mock
}

Registerer is an autogenerated mock type for the Registerer type

func (*Registerer) Register

func (_m *Registerer) Register(_a0 context.Context, _a1 string, _a2 []string, _a3 []byte, _a4 peer.ID, _a5 string) ([]*proto.MessageTopicPair, *proto.UserRole, error)

Register provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*Registerer) Target

func (_m *Registerer) Target() string

Target provides a mock function with given fields:

func (*Registerer) UpdateTarget

func (_m *Registerer) UpdateTarget(_a0 peer.ID)

UpdateTarget provides a mock function with given fields: _a0

type Subscriber

type Subscriber struct {
	mock.Mock
}

Subscriber is an autogenerated mock type for the Subscriber type

func (*Subscriber) Subscribe

func (_m *Subscriber) Subscribe(topic string, opts ...pubsub.SubOpt) (*pubsub.Subscription, error)

Subscribe provides a mock function with given fields: topic, opts

Jump to

Keyboard shortcuts

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