queue

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MPL-2.0-no-copyleft-exception Imports: 10 Imported by: 2 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the queue client.

func New

func New(addr string, cert *transport.Cert, trace bool) (*Client, error)

New constructs a new *Client.

func (*Client) Close

func (c *Client) Close() error

Close closes the client's tracing functionality

func (*Client) GetCancel

func (c *Client) GetCancel(ctx context.Context, id int64) (bool, error)

GetCancel retrieves the cancel state of the run.

func (*Client) NextQueueItem

func (c *Client) NextQueueItem(ctx context.Context, queueName, hostname string) (*model.QueueItem, error)

NextQueueItem returns the next item in the queue.

func (*Client) SetCancel

func (c *Client) SetCancel(ctx context.Context, id int64) error

SetCancel sets the cancel state for a given run id.

func (*Client) SetStatus

func (c *Client) SetStatus(ctx context.Context, id int64, status bool) error

SetStatus completes the run by returning its status back to the system.

func (*Client) Submit

func (c *Client) Submit(ctx context.Context, sub *types.Submission) error

Submit submits a push or pull request to the queue.

Jump to

Keyboard shortcuts

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