Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GossipState ¶
type GossipState interface { Snapshot() *GossipStateSnapshot UpdateValues(removeKeys []string, putKeys map[string]string) error Start() error }
func GetGossipState ¶ added in v1.16.0
func GetGossipState(protocol, listen, channelName, gossipName string, gossipSecret []byte, gossipSeeds SeedProvider) (GossipState, error)
type GossipStateSnapshot ¶
type MultiGossipState ¶ added in v1.16.0
type MultiGossipState struct { Primary GossipState Secondary GossipState }
MultiGossipState enables ramping between gossip mechanisms. This will replicaet all UpdateValue operations to the Secondary while still calling the primary for all Snapshot information
func (*MultiGossipState) Snapshot ¶ added in v1.16.0
func (m *MultiGossipState) Snapshot() *GossipStateSnapshot
func (*MultiGossipState) Start ¶ added in v1.16.0
func (m *MultiGossipState) Start() error
func (*MultiGossipState) UpdateValues ¶ added in v1.16.0
func (m *MultiGossipState) UpdateValues(removeKeys []string, putKeys map[string]string) error
type SeedProvider ¶
type StaticSeedProvider ¶
type StaticSeedProvider struct {
Seeds []string
}
func NewStaticSeedProvider ¶
func NewStaticSeedProvider(seeds []string) *StaticSeedProvider
func (*StaticSeedProvider) GetSeeds ¶
func (s *StaticSeedProvider) GetSeeds() ([]string, error)
Click to show internal directories.
Click to hide internal directories.