Documentation ¶
Index ¶
- type NetTopology
- func (_m *NetTopology) Dial(nodeID uint64, timeout time.Duration) (*network.Conn, error)
- func (_m *NetTopology) NodesInShard(shardID uint64) []uint64
- func (_m *NetTopology) RandNodeInShard(shardID uint64) uint64
- func (_m *NetTopology) SeedPublicKeys() map[uint64]signature.PublicKey
- func (_m *NetTopology) ShardForNode(nodeID uint64) uint64
- func (_m *NetTopology) ShardForVersionID(key []byte) uint64
- func (_m *NetTopology) ShardSize() uint64
- func (_m *NetTopology) TotalNodes() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetTopology ¶
NetTopology is an autogenerated mock type for the NetTopology type
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:
Click to show internal directories.
Click to hide internal directories.