task

package
v0.0.0-...-d59d7d1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID             string
	Path           string
	Image          string
	Timeout        time.Duration
	IdleTimeout    time.Duration
	AppName        string
	Memory         uint64
	Env            map[string]string
	Format         string
	MaxConcurrency int

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

type Request

type Request struct {
	Ctx      context.Context
	Config   *Config
	Response chan Response
}

Request stores the task to be executed by the common concurrency stream, whatever type the ask actually is, either sync or async. It holds in itself the channel to return its response to its caller.

type Response

type Response struct {
	Result drivers.RunResult
	Err    error
}

Response holds the response metainformation of a Request

Jump to

Keyboard shortcuts

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