worker

package
v0.0.0-...-de2e9b4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExampleWorker

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

ExampleWorker is an example worker.

func NewExampleWorker

func NewExampleWorker(config *config.Config) *ExampleWorker

NewExampleWorker returns a new ExampleWorker.

func (*ExampleWorker) Name

func (w *ExampleWorker) Name() string

Name returns the ExampleWorker name.

func (*ExampleWorker) Run

func (w *ExampleWorker) Run(ctx context.Context) error

Run executes the ExampleWorker.

Jump to

Keyboard shortcuts

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