jobs

package
v0.0.0-...-453881e Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 8 Imported by: 5

Documentation

Overview

Logic for interacting with the "jobs" table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(job models.Job) (*models.Job, error)

func Get

func Get(name string) (*models.Job, error)

Get a job by its name.

func GetAll

func GetAll() ([]*models.Job, error)

func GetRetry

func GetRetry(name string, attempts uint8) (job *models.Job, err error)

GetRetry attempts to get the job `attempts` times before giving up.

func Setup

func Setup() (err error)

Setup prepares all database queries in this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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