Documentation ¶
Index ¶
- func GenerateJobID() types.JobID
- func GenerateResourceID() types.ResourceID
- func GenerateTaskID() types.TaskID
- func HashBytesToEquivClass(b []byte) types.EquivClass
- func MustJobIDFromString(s string) types.JobID
- func MustResourceIDFromString(s string) types.ResourceID
- func RandUint64() uint64
- func ResourceIDFromString(s string) (types.ResourceID, error)
- func SeedRNGWithInt(seed int64)
- func SeedRNGWithString(seed string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJobID ¶
func GenerateResourceID ¶
func GenerateResourceID() types.ResourceID
ID generators NOTE: For GenerateRootResourceID() just use this func
func GenerateTaskID ¶
For GenerateRootTaskID() just use this func
func HashBytesToEquivClass ¶
func HashBytesToEquivClass(b []byte) types.EquivClass
func MustJobIDFromString ¶
func MustResourceIDFromString ¶
func MustResourceIDFromString(s string) types.ResourceID
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.
Click to show internal directories.
Click to hide internal directories.