queue

package
v0.0.0-...-f64df6f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executable

type Executable struct {
	Number int    `json:"number"`
	URL    string `json:"url"`
}

Executable is an execution of the queue item

func (*Executable) JobName

func (e *Executable) JobName() string

JobName gets the job name of the execution that happened

type Item

type Item struct {
	Blocked    bool        `json:"blocked"`
	Buildable  bool        `json:"buildable"`
	ID         int         `json:"id"`
	URL        string      `json:"url"`
	Executable *Executable `json:"executable"`
	Task       Task        `json:"task"`
}

Item is an Item in the queue

func (*Item) Executing

func (i *Item) Executing() bool

Executing returns a boolean indicating whether a queue Item is currently executing

type Task

type Task struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Task is the scheduled task for the queue item

Jump to

Keyboard shortcuts

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