task

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Key   string
	Value interface{}
}

Argument is key value struct that should be passed in a service call

type Metadata

type Metadata struct {
	Name string
}

Metadata holds all the metadata of a pipeline

type RunOptions

type RunOptions struct {
	FD            filedescriptor.FD
	EventReporter reporter.EventReporter
	Modem         modem.ServiceCaller
}

RunOptions run tasks with given options

type Task

type Task interface {
	Run(ctx context.Context, options RunOptions) ([]byte, error)
	Name() string
}

Task defines task interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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