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 []*proto.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 []proto.StoreID, gossiper func())
GossipWithFunction is similar to GossipStores but instead of gossiping the store descriptors directly, call the passed in function to do so.
Click to show internal directories.
Click to hide internal directories.