broker

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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