Documentation
¶
Index ¶
- Constants
- func Abs(a, b uint64) uint64
- func GetRandomIndices(indiceCount, highestIndex int) []int
- func IndexInSlice(array interface{}, o interface{}, equals Equals) int
- func PrintStackTrace()
- func SetDefaultFormat(formatStr string)
- func SetDefaultLoggingLevel(level logging.Level)
- type Equals
- type Logger
- type Set
Constants ¶
View Source
const ( // LoggingMessageBuffModule defines the module for logging message buffer LoggingMessageBuffModule = "mbuff" // LoggingEmitterModule defines the module for logging emitter LoggingEmitterModule = "emitter" // LoggingGossipModule defines the module for logging gossip LoggingGossipModule = "gossip" // LoggingDiscoveryModule defines the module for logging discovery LoggingDiscoveryModule = "discovery" // LoggingCommModule defines the module for logging communication LoggingCommModule = "comm" )
Variables ¶
This section is empty.
Functions ¶
func GetRandomIndices ¶
GetRandomIndices returns a slice of random indices from 0 to given highestIndex
func IndexInSlice ¶
IndexInSlice returns the index of given object o in array
func SetDefaultFormat ¶
func SetDefaultFormat(formatStr string)
SetDefaultFormat sets the formatter for the gossip logger
func SetDefaultLoggingLevel ¶
func SetDefaultLoggingLevel(level logging.Level)
SetDefaultLoggingLevel sets the default logging level for the gossip logger
Types ¶
type Equals ¶
type Equals func(a interface{}, b interface{}) bool
Equals returns whether a and b are the same
type Logger ¶ added in v1.3.0
type Logger struct { logging.Logger // contains filtered or unexported fields }
Logger defines a logger for gossip
Click to show internal directories.
Click to hide internal directories.