Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FusionWorker ¶
type FusionWorker struct {
// contains filtered or unexported fields
}
FusionWorker provides means for running a worker against a task queue. The tasks it consumes are DetectionTask protos.
func New ¶
func New(mfClient *medifor.FusionClient, eqClient *entroq.EntroQ, workQueues []string, opts ...Option) *FusionWorker
New creates a new FusionWorker. To operate, the worker needs access to a task client, the medifor client, and the name of a queue it should read tasks from.
type Option ¶
type Option func(*FusionWorker)
Option is fuser worker option used when calling New.
func WithMaxAttempts ¶
WithMaxAttempts sets the maximum attempts to the given value. Values less than 1 mean "unlimited".
func WithMemoization ¶
WithMemoization sets things up to memoize results to files as well as just pushing thing into the outbox.
Click to show internal directories.
Click to hide internal directories.