Documentation ¶
Overview ¶
Package worker implements worker node iteraction with the coordinator server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPollingConfig = PollingConfig{ Initial: time.Second, Multiplier: 1.5, Max: time.Minute, }
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Worker)
func WithLogger ¶
func WithPollingConfig ¶
func WithPollingConfig(poll PollingConfig) Option
type PollingConfig ¶
type Processor ¶
type Processor interface {
Process(context.Context, *coordinator.Job) (io.ReadCloser, error)
}
Processor executes jobs, returning the output file.
Click to show internal directories.
Click to hide internal directories.