Documentation ¶
Index ¶
- Variables
- func BoolToUint(input []bool) []uint64
- func GetEpochFromSlot(slot uint64) uint64
- func GetValIndexesFromJson(filePath string) ([]uint64, error)
- func IsBitSet(input uint8, n int) bool
- func IsValidRangeuint64(init uint64, final uint64) bool
- func ParseLogFormatter(lvl string) logrus.Formatter
- func ParseLogLevel(lvl string) logrus.Level
- func ParseLogOutput(lvl string) io.Writer
- type Range
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModName = "utils" DefaultLoglvl = logrus.InfoLevel DefaultLogOutput = os.Stdout DefaultFormater = &logrus.TextFormatter{} )
App default configurations
View Source
var SlotBase uint64 = 32
Functions ¶
func BoolToUint ¶
func GetEpochFromSlot ¶
func GetValIndexesFromJson ¶
func ParseLogFormatter ¶
parse Formatter from string
Types ¶
type Range ¶
type Range struct {
// contains filtered or unexported fields
}
func NewRangeFromString ¶
func (*Range) GetRandomNumber ¶
func (*Range) GetRandomNumberStr ¶
Click to show internal directories.
Click to hide internal directories.