worker

package
v0.51.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartPingServer added in v0.39.0

func StartPingServer(ctx context.Context, port int) error

StartPingServer starts a http server that returns 200 OK on /ping

Types

type Worker

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

func New

func New(logger *zap.Logger, adm *admin.Service, jobsClient jobs.Client) *Worker

func (*Worker) Run

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

func (*Worker) RunJob added in v0.27.0

func (w *Worker) RunJob(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

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