util

package
v0.0.0-...-5d2b7a7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJobID

func GenerateJobID() types.JobID

func GenerateResourceID

func GenerateResourceID() types.ResourceID

ID generators NOTE: For GenerateRootResourceID() just use this func

func GenerateTaskID

func GenerateTaskID() types.TaskID

For GenerateRootTaskID() just use this func

func HashBytesToEquivClass

func HashBytesToEquivClass(b []byte) types.EquivClass

func MustJobIDFromString

func MustJobIDFromString(s string) types.JobID

func MustResourceIDFromString

func MustResourceIDFromString(s string) types.ResourceID

func RandUint64

func RandUint64() uint64

Generate a uint64 random number

func ResourceIDFromString

func ResourceIDFromString(s string) (types.ResourceID, error)

func SeedRNGWithInt

func SeedRNGWithInt(seed int64)

Seed the rng to generate deterministic IDs for testing purposes

func SeedRNGWithString

func SeedRNGWithString(seed string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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