worker

package
v0.16.4-alpha Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "model-backend"

Namespace is the Temporal namespace for model-backend

View Source
const TaskQueue = "model-backend"

TaskQueue is the Temporal task queue name for model-backend

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelParams

type ModelParams struct {
	Model datamodel.Model
	Owner string
}

type Worker

type Worker interface {
	DeployModelWorkflow(ctx workflow.Context, param *ModelParams) error
	DeployModelActivity(ctx context.Context, param *ModelParams) error
	UnDeployModelWorkflow(ctx workflow.Context, param *ModelParams) error
	UnDeployModelActivity(ctx context.Context, param *ModelParams) error
	CreateModelWorkflow(ctx workflow.Context, param *ModelParams) error
}

Worker interface

func NewWorker

NewWorker initiates a temporal worker for workflow and activity definition

Jump to

Keyboard shortcuts

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