executor

package
v0.0.0-...-0795aef Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(ctx context.Context, w *Worker)

Types

type Worker

type Worker struct {
	ID            WorkerID
	Target        *config.MinerTarget
	SourceClient  source.SourceClient
	TrackerClient *tracker.TrackerClient
	Publisher     publisher.Publisher
	Done          chan WorkerID
}

func BuildWorker

func BuildWorker(id WorkerID, target *config.MinerTarget, done chan WorkerID) (*Worker, error)

type WorkerID

type WorkerID = int

Jump to

Keyboard shortcuts

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