workerframework

package
v0.0.0-...-73f03d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 7 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 ClimonWorker

type ClimonWorker interface {
	Create(payload *model.CreteRequestPayload) (json.RawMessage, error)
	Delete(payload *model.DeleteRequestPayload) (json.RawMessage, error)
	List(payload *model.ListRequestPayload) (json.RawMessage, error)
}

type Configuration

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

type ConfigurationWorker

type ConfigurationWorker interface {
	ClusterAdd(payload interface{}) (json.RawMessage, error)
	ClusterDelete(payload interface{}) (json.RawMessage, error)

	RepositoryAdd(payload interface{}) (json.RawMessage, error)
	RepositoryDelete(payload interface{}) (json.RawMessage, error)

	ProjectAdd(payload interface{}) (json.RawMessage, error)
	ProjectDelete(payload interface{}) (json.RawMessage, error)
}

type DeploymentWorker

type DeploymentWorker interface {
	Create(payload *model.CreteRequestPayload) (json.RawMessage, error)
	Delete(payload *model.DeleteRequestPayload) (json.RawMessage, error)
	List(payload *model.ListRequestPayload) (json.RawMessage, error)
}

type Plugin

type Plugin interface {
	// DeployActivities(payload interface{}) (json.RawMessage, error)
	Create(payload *model.CreteRequestPayload) (json.RawMessage, error)
	Delete(payload *model.DeleteRequestPayload) (json.RawMessage, error)
	List(payload *model.ListRequestPayload) (json.RawMessage, error)
}

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 (*Worker) Close

func (w *Worker) Close()

func (*Worker) RegisterToTemporal

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

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