workerframework

package
v0.0.0-...-7c824b2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	GetStatus()
}

type Configuration

type Configuration struct {
	TemporalServiceAddress string `envconfig:"TEMPORAL_SERVICE_URL" default:"localhost:7233"`
}

type Worker

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

func NewWorker

func NewWorker(taskQueueName string, wf, activity interface{}, logger logging.Logger) (*Worker, error)

func NewWorkerV2

func NewWorkerV2(taskQueueName string, logger logging.Logger) (*Worker, error)

func (*Worker) Close

func (w *Worker) Close()

func (*Worker) RegisterActivities

func (w *Worker) RegisterActivities(activityList ...interface{})

func (*Worker) RegisterToTemporal

func (w *Worker) RegisterToTemporal(taskQueueName string, wf, activity interface{}) error

func (*Worker) RegisterWorkflows

func (w *Worker) RegisterWorkflows(wfList ...interface{})

func (*Worker) Run

func (w *Worker) Run() error

Jump to

Keyboard shortcuts

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