Documentation ¶
Index ¶
- func GetDefaultConfig() gubernator.Config
- func GetRandomPeer() gubernator.PeerInfo
- func InstanceAt(idx int) *instance
- func InstanceForHost(host string) *instance
- func NumOfInstances() int
- func PeerAt(idx int) gubernator.PeerInfo
- func Start(numInstances int) error
- func StartInstance(address string, conf gubernator.Config) (*instance, error)
- func StartWith(addresses []string) error
- func Stop()
- func StopInstanceAt(idx int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfig ¶ added in v0.9.0
func GetDefaultConfig() gubernator.Config
Returns default testing configuration
func GetRandomPeer ¶ added in v0.9.0
func GetRandomPeer() gubernator.PeerInfo
Returns a random peer from the cluster
func InstanceForHost ¶ added in v0.9.0
func InstanceForHost(host string) *instance
Return the specific instance for a host
func StartInstance ¶ added in v0.7.1
func StartInstance(address string, conf gubernator.Config) (*instance, error)
Start a single instance of gubernator with the provided config and listening address. If address is empty string a random port on the loopback device will be chosen.
func StopInstanceAt ¶ added in v0.9.0
func StopInstanceAt(idx int)
Stop an instance without updating peers, used to cause connection errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.