Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewTopologyMap ¶
MustNewTopologyMap returns a new topology.Map with provided parameters. It's a utility method to make tests easier to write.
func NewStateSnapshot ¶
func NewStateSnapshot(hostShardStates HostShardStates) *topology.StateSnapshot
NewStateSnapshot creates a new initial topology state snapshot using HostShardStates as input.
Types ¶
type HostShardStates ¶
HostShardStates is a human-readable way of describing an initial state topology on a host-by-host basis.
type TopologyView ¶
TopologyView represents a snaphshot view of a topology.Map.
func NewTopologyView ¶
func NewTopologyView(replicas int, assignment map[string][]shard.Shard) TopologyView
NewTopologyView returns a new TopologyView with provided parameters. It's a utility method to make tests easier to write.
Click to show internal directories.
Click to hide internal directories.