worker

package
v0.0.0-pre.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(ctx context.Context, client *http.Client, opts ...WorkerOption) (*Worker, error)

func (*Worker) Run

func (w *Worker) Run(ctx context.Context)

type WorkerOption

type WorkerOption func(*Worker) error

func WithIdleSleep

func WithIdleSleep(sleep time.Duration) WorkerOption

func WithSource

func WithSource(src source.Source) WorkerOption

Jump to

Keyboard shortcuts

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