jobs

package
v0.0.0-...-63fa78c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jobs implements generic helpers for use in various specific job types as defined in the subdirectories that follow.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRangeString

func ParseRangeString(s string) ([]int, error)

ParseRangeString accepts a string input and returns a list of integers that fall within the described range string. Returns an error if the string is malformed. A range string may contain any number of comma separated groups, where each group may either be a single scalar value, or a range specified in the form of `a-b`. A valid range string would be `32,50-52` which would return the list of integers `[32,50,51,52]`.

func RangeContainsClass

func RangeContainsClass(xs []int, x int) bool

func SafeMkdir

func SafeMkdir(path string) error

SafeMkdir guards the access to the directory creation using a simple RW mutex. This is in-case one of the N cores tries to create the same directory when anther already has defined the node.

Types

This section is empty.

Directories

Path Synopsis
Package explode wraps all needed logic to run a parallel job that will take a directory of tf records and explode them into their respective classes.
Package explode wraps all needed logic to run a parallel job that will take a directory of tf records and explode them into their respective classes.
Package implode wraps all needed logic to run a parallel job that will take a directory of tf records and implode them from their respective classes.
Package implode wraps all needed logic to run a parallel job that will take a directory of tf records and implode them from their respective classes.

Jump to

Keyboard shortcuts

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