Help us shape the future of Go! Take the 2026 Go Developer Survey

wfbackend

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	metadata.Base `json:",inline"`

	// Dapr app ID
	AppID string
}

Metadata represents a set of properties specific for workflow backends.

type Registry

type Registry struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}

Registry is an interface for a component that returns registered workflow backend implementations.

var DefaultRegistry *Registry = NewRegistry()

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

NewRegistry is used to create workflow registry.

func (*Registry) Create

func (s *Registry) Create(name, version, logName string) (func(Metadata) (backend.Backend, error), error)

func (*Registry) RegisterComponent

func (s *Registry) RegisterComponent(componentFactory workflowBackendFactory, names ...string)

RegisterComponent adds a new workflow to the registry.

Jump to

Keyboard shortcuts

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