package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Functions

Contains returns whether a given slice a contains a string s.
CreateGRPCLayer returns a new gRPC server with associated port, TLS certificates, SecureDialOpts and DialOption.
GetDurationOrDefault returns the Duration value from config if present otherwise default value.
GetFloat64OrDefault returns the float64 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 logger name and peerID.
GetRandomIndices returns indiceCount random indices from 0 to highestIndex.
IndexInSlice returns the index of given object o in array, and -1 if it is not 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 If we want a rand that's non-global and specific to gossip, we can establish one.
SetupTestLogging sets the default log levels for gossip unit tests to defaultTestSpec.
SetupTestLoggingWithLevel sets the default log levels for gossip unit tests to level.
SetVal stores key value to viper.

# Constants

Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.
Logger names for logger initialization.

# Structs

MembershipStore struct which encapsulates membership message store abstraction.
PrivateRWSetWithConfig encapsulates private read-write set among with relevant to collections config information.
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.