# Functions
Contains returns whether a given slice a contains a string s.
GetDurationOrDefault returns the Duration value from config if present otherwise default value.
GetIntOrDefault returns the int value from config if present otherwise default value.
GetLogger returns a logger for given gossip module and peerID.
GetRandomIndices returns a slice of random indices from 0 to given highestIndex.
IndexInSlice returns the index of given object o in array.
NewMembershipStore creates new membership store instance.
NewPubSub creates a new PubSub with an empty set of subscriptions.
NewSet returns a new set.
PrintStackTrace prints to stdout all goroutines.
PrivateRWSets creates an aggregated slice of RWSets.
RandomInt returns, as an int, a non-negative pseudo-random integer in [0,n) It panics if n <= 0.
RandomUInt64 returns a random uint64.
SetDuration stores duration key value to viper.
SetupTestLogging sets the default log levels for gossip unit tests.
# Constants
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
Module names for logger initialization.
# Structs
MembershipStore struct which encapsulates membership message store abstraction.
PubSub defines a struct that one can use to: - publish items to a topic to multiple subscribers - and subscribe to items from a topic The subscriptions have a TTL and are cleaned when it passes.
Set is a generic and thread-safe set container.
# Interfaces
Subscription defines a subscription to a topic that can be used to receive publishes on.
# Type aliases
Equals returns whether a and b are the same.
PrivateRWSet contains the bytes of CollectionPvtReadWriteSet.
PvtDataCollections data type to encapsulate collections of private data.