worker

package
v0.8.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "connector-backend"

Namespace is the Temporal namespace for connector-backend

View Source
const TaskQueue = "connector-backend"

TaskQueue is the Temporal task queue name for connector-backend

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckActivityParam

type CheckActivityParam struct {
	ImageName       string
	ContainerName   string
	ConfigFileName  string
	ConnectorConfig []byte
}

CheckActivityParam represents the parameters for CheckActivity

type CheckWorkflowParam

type CheckWorkflowParam struct {
	OwnerPermalink string
	ConnUID        string
	ImageName      string
	ContainerName  string
	ConfigFileName string
}

CheckWorkflowParam represents the parameters for CheckWorkflow

type Worker

type Worker interface {
	CheckWorkflow(ctx workflow.Context, param *CheckWorkflowParam) error
	CheckActivity(ctx context.Context, param *CheckActivityParam) (exitCode, error)
	WriteWorkflow(ctx workflow.Context, param *WriteWorkflowParam) error
	WriteActivity(ctx context.Context, param *WriteActivityParam) (exitCode, error)
}

Worker interface

func NewWorker

func NewWorker(r repository.Repository, dc *client.Client) Worker

NewWorker initiates a temporal worker for workflow and activity definition

type WriteActivityParam

type WriteActivityParam struct {
	ImageName                string
	ContainerName            string
	ConfigFileName           string
	CatalogFileName          string
	Pipeline                 string
	Indices                  []string
	ConnectorConfig          []byte
	ConfiguredAirbyteCatalog []byte
	AirbyteMessages          []byte
}

WriteActivityParam represents the parameters for WriteActivity

type WriteWorkflowParam

type WriteWorkflowParam struct {
	OwnerPermalink           string
	ConnectorPermalink       string
	ImageName                string
	ContainerName            string
	ConfigFileName           string
	CatalogFileName          string
	Pipeline                 string
	Indices                  []string
	ConfiguredAirbyteCatalog []byte
	AirbyteMessages          []byte
}

WriteWorkflowParam represents the parameters for WriteWorkflow

Jump to

Keyboard shortcuts

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