Documentation
¶
Index ¶
- Constants
- func BytesToStrings(bytes [][]byte) []string
- func Contains(s string, a []string) bool
- func CreateGRPCLayer() (port int, gRPCServer *comm.GRPCServer, certs *common.TLSCertificates, ...)
- func GetDurationOrDefault(key string, defVal time.Duration) time.Duration
- func GetFloat64OrDefault(key string, defVal float64) float64
- func GetIntOrDefault(key string, defVal int) int
- func GetRandomIndices(indiceCount, highestIndex int) []int
- func IndexInSlice(array interface{}, o interface{}, equals Equals) int
- func PrintStackTrace()
- func PrivateRWSets(rwsets ...PrivateRWSet) [][]byte
- func RandomInt(n int) int
- func RandomUInt64() uint64
- func SetVal(key string, val interface{})
- func SetupTestLogging()
- func StringsToBytes(strings []string) [][]byte
- type Equals
- type Logger
- type MembershipStore
- func (m *MembershipStore) MsgByID(pkiID common.PKIidType) *protoext.SignedGossipMessage
- func (m *MembershipStore) Put(pkiID common.PKIidType, msg *protoext.SignedGossipMessage)
- func (m *MembershipStore) Remove(pkiID common.PKIidType)
- func (m *MembershipStore) Size() int
- func (m *MembershipStore) ToSlice() []*protoext.SignedGossipMessage
- type PrivateRWSet
- type PrivateRWSetWithConfig
- type PubSub
- type PvtDataCollections
- type Set
- type Subscription
Constants ¶
View Source
const ( ChannelLogger = "gossip.channel" CommLogger = "gossip.comm" DiscoveryLogger = "gossip.discovery" ElectionLogger = "gossip.election" GossipLogger = "gossip.gossip" CommMockLogger = "gossip.comm.mock" PullLogger = "gossip.pull" ServiceLogger = "gossip.service" StateLogger = "gossip.state" PrivateDataLogger = "gossip.privdata" )
Variables ¶
This section is empty.
Functions ¶
func BytesToStrings ¶
func CreateGRPCLayer ¶
func CreateGRPCLayer() (port int, gRPCServer *comm.GRPCServer, certs *common.TLSCertificates, secureDialOpts api.PeerSecureDialOpts, dialOpts []grpc.DialOption)
func GetDurationOrDefault ¶
func GetFloat64OrDefault ¶
func GetIntOrDefault ¶
func GetRandomIndices ¶
func IndexInSlice ¶
func PrintStackTrace ¶
func PrintStackTrace()
func PrivateRWSets ¶
func PrivateRWSets(rwsets ...PrivateRWSet) [][]byte
func RandomUInt64 ¶
func RandomUInt64() uint64
func SetupTestLogging ¶
func SetupTestLogging()
func StringsToBytes ¶
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Warning(args ...interface{}) Warningf(format string, args ...interface{}) IsEnabledFor(l zapcore.Level) bool }
type MembershipStore ¶
func NewMembershipStore ¶
func NewMembershipStore() *MembershipStore
func (*MembershipStore) MsgByID ¶
func (m *MembershipStore) MsgByID(pkiID common.PKIidType) *protoext.SignedGossipMessage
func (*MembershipStore) Put ¶
func (m *MembershipStore) Put(pkiID common.PKIidType, msg *protoext.SignedGossipMessage)
func (*MembershipStore) Remove ¶
func (m *MembershipStore) Remove(pkiID common.PKIidType)
func (*MembershipStore) Size ¶
func (m *MembershipStore) Size() int
func (*MembershipStore) ToSlice ¶
func (m *MembershipStore) ToSlice() []*protoext.SignedGossipMessage
type PrivateRWSet ¶
type PrivateRWSet []byte
func (PrivateRWSet) Digest ¶
func (rws PrivateRWSet) Digest() string
type PrivateRWSetWithConfig ¶
type PrivateRWSetWithConfig struct { RWSet []PrivateRWSet CollectionConfig *common.CollectionConfig }
type PvtDataCollections ¶
func (*PvtDataCollections) Marshal ¶
func (pvt *PvtDataCollections) Marshal() ([][]byte, error)
func (*PvtDataCollections) Unmarshal ¶
func (pvt *PvtDataCollections) Unmarshal(data [][]byte) error
type Subscription ¶
type Subscription interface {
Listen() (interface{}, error)
}
Click to show internal directories.
Click to hide internal directories.