hostedworkers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartLinearPoller

func StartLinearPoller(
	ctx context.Context,
	sidecars *sync.WaitGroup,
	cfg Config,
	runtimeCfg interfaces.RuntimeConfigLookup,
	workstation interfaces.FactoryWorkstationConfig,
	workerDef *interfaces.WorkerConfig,
	submitter Submitter,
)

StartLinearPoller supervises a hosted Linear poller for one poller workstation. Unsupported providers must be filtered by the caller before invoking this function.

Types

type Config

type Config struct {
	Logger         *zap.Logger
	Clock          clockwork.Clock
	HTTPClient     *http.Client
	SecretResolver SecretResolver
	LinearEndpoint string
}

Config carries hosted-poller runtime dependencies injected by the service root.

type SecretResolver

type SecretResolver func(ctx context.Context, runtimeCfg interfaces.RuntimeConfigLookup, secretRef string) (string, error)

SecretResolver resolves hosted-worker auth.secretRef values at runtime.

type Submitter

type Submitter func(context.Context, interfaces.WorkRequest) error

Submitter submits normalized hosted-poller work requests into factory ingress.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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