worker

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns the worker command

func NewWorker

func NewWorker(ctx context.Context, conf *config.Config, log *logger.Logger, opts *Options) (*worker.DefaultWorker, error)

NewWorker returns a new Funnel worker based on the given config.

func Run

func Run(ctx context.Context, conf *config.Config, log *logger.Logger, opts *Options) error

Run runs the "worker run" command.

Types

type Options

type Options struct {
	TaskID     string
	TaskFile   string
	TaskBase64 string
}

Options holds a few CLI options for worker entrypoints.

Jump to

Keyboard shortcuts

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