worker

package
v0.19.1237 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.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 Params

type Params struct {
	fx.In

	Cfg       *internal.Config
	V         *validator.Validate
	MW        metrics.Writer
	Analytics temporalanalytics.Writer
	Features  *features.Features
}

type Worker

type Worker struct {
	worker.Worker
}

func New

func New(params WorkerParams) (*Worker, error)

type WorkerParams

type WorkerParams struct {
	fx.In

	Cfg                 *internal.Config
	TClient             temporalclient.Client
	SharedWkflows       *workflows.Workflows
	SharedActivities    *workflows.Activities
	WKflows             *Workflows
	Acts                *activities.Activities
	TriggerActs         *appsactivities.Activities `name:"org-trigger-activities"`
	CloudConnectionActs *cloudconnectionsactivities.Activities
	L                   *zap.Logger
	LC                  fx.Lifecycle
	Interceptors        []interceptor.WorkerInterceptor `group:"interceptors"`
	QueueClient         *queueclient.Client
}

type Workflows

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

func NewWorkflows

func NewWorkflows(params Params) (*Workflows, error)

func (*Workflows) All

func (w *Workflows) All() []any

func (*Workflows) ListWorkflowFns added in v0.19.850

func (w *Workflows) ListWorkflowFns() []any

ListWorkflowFns returns the list of workflow functions for registration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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