utility

package
v0.0.0-...-6968735 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FNV1AHashAlgorithm = fnv.New32a()

FNV-1a is a not cryptographic hash function: 1) Fast to compute and designed for fast hash table. 2) Slightly better avalanche characteristics than FNV-1 hash function.

View Source
var SHA512cryptoHashAlgorithm = sha512.New()

Secure Hash Algorithm...

Functions

func BuildWordScannerFromString

func BuildWordScannerFromString(inputString string) *bufio.Scanner

func CheckError

func CheckError(err error)

func Decoding

func Decoding(rawData []byte, outputType interface{}) error

func Encoding

func Encoding(data interface{}) ([]byte, error)

func Equal

func Equal(a, b []byte) bool

func GenerateArrayIndexFromString

func GenerateArrayIndexFromString(inputString string, arraySize uint) (uint, error)

func GenerateDigestUsingSHA512

func GenerateDigestUsingSHA512(data []byte) string

func GetCPUPercentageUtilizationAsInteger

func GetCPUPercentageUtilizationAsInteger() (int, error)

Types

type NodeConfiguration

type NodeConfiguration struct {
	ZookeeperServersPrivateIPs []string
	NodeID                     int
	NodeGroupID                int
	NodeClass                  string
}

func (*NodeConfiguration) Load

func (obj *NodeConfiguration) Load(path string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL