mocks

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 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 NetTopology

type NetTopology struct {
	mock.Mock
}

NetTopology is an autogenerated mock type for the NetTopology type

func (*NetTopology) Dial

func (_m *NetTopology) Dial(nodeID uint64, timeout time.Duration) (*network.Conn, error)

Dial provides a mock function with given fields: nodeID, timeout

func (*NetTopology) NodesInShard

func (_m *NetTopology) NodesInShard(shardID uint64) []uint64

NodesInShard provides a mock function with given fields: shardID

func (*NetTopology) RandNodeInShard

func (_m *NetTopology) RandNodeInShard(shardID uint64) uint64

RandNodeInShard provides a mock function with given fields: shardID

func (*NetTopology) SeedPublicKeys

func (_m *NetTopology) SeedPublicKeys() map[uint64]signature.PublicKey

SeedPublicKeys provides a mock function with given fields:

func (*NetTopology) ShardForNode

func (_m *NetTopology) ShardForNode(nodeID uint64) uint64

ShardForNode provides a mock function with given fields: nodeID

func (*NetTopology) ShardForVersionID

func (_m *NetTopology) ShardForVersionID(key []byte) uint64

ShardForVersionID provides a mock function with given fields: key

func (*NetTopology) ShardSize

func (_m *NetTopology) ShardSize() uint64

ShardSize provides a mock function with given fields:

func (*NetTopology) TotalNodes

func (_m *NetTopology) TotalNodes() uint64

TotalNodes provides a mock function with given fields:

Jump to

Keyboard shortcuts

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