Discover Packages
github.com/kfsoftware/hlf-operator
internal
github.com
hyperledger
fabric
gossip
util
package
Version:
v1.6.0-beta2
Opens a new window with list of versions in this module.
Published: Mar 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
func GetRandomIndices(indiceCount, highestIndex int ) []int
GetRandomIndices returns indiceCount random indices
from 0 to highestIndex.
func IndexInSlice(array interface{}, o interface{}, equals Equals ) int
IndexInSlice returns the index of given object o in array, and -1 if it is not in array.
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. Otherwise this uses the process-global locking RNG.
type Equals func(a interface{}, b interface{}) bool
Equals returns whether a and b are the same
Set is a generic and thread-safe
set container
Source Files
¶
Click to show internal directories.
Click to hide internal directories.