broker

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 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

Overview

Package broker provides a distributed task manager built on the micro broker

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTask

func NewTask(opts ...task.Option) task.Task

NewTask returns a new broker task

func WithBroker

func WithBroker(b broker.Broker) task.Option

Broker sets the micro broker

Types

type Task

type Task struct {
	// a micro broker
	Broker broker.Broker
	// Options
	Options task.Options
	// contains filtered or unexported fields
}

Task is a broker task

func (*Task) Run

func (t *Task) Run(c task.Command) error

func (*Task) Status

func (t *Task) Status() string

Jump to

Keyboard shortcuts

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