work

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	Type        string
	Job         *domain.Job
	Result      chan domain.JobResult
	TimeoutUnit time.Duration
}

Work is the task to be executed by the workers.

func NewWork

func NewWork(
	j *domain.Job,
	resultChan chan domain.JobResult,
	timeoutUnit time.Duration) Work

NewWork initializes and returns a new Work instance.

Jump to

Keyboard shortcuts

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