gossiputil

package
v0.0.0-...-aef47e8 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreGossiper

type StoreGossiper struct {
	// contains filtered or unexported fields
}

StoreGossiper allows tests to push storeDescriptors into gossip and synchronize on their callbacks. There can only be one storeGossiper used per gossip instance.

func NewStoreGossiper

func NewStoreGossiper(g *gossip.Gossip) *StoreGossiper

NewStoreGossiper creates a store gossiper for use by tests. It adds the callback to gossip.

func (*StoreGossiper) GossipStores

func (sg *StoreGossiper) GossipStores(stores []*roachpb.StoreDescriptor, t *testing.T)

GossipStores queues up a list of stores to gossip and blocks until each one is gossiped before returning.

func (*StoreGossiper) GossipWithFunction

func (sg *StoreGossiper) GossipWithFunction(stores []roachpb.StoreID, gossiper func())

GossipWithFunction is similar to GossipStores but instead of gossiping the store descriptors directly, call the passed in function to do so.

Jump to

Keyboard shortcuts

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