factory

package
v0.0.0-...-23becbe Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Workflow    MetadataBuilder
	Runner      RunnerBuiler
	Coordinator CoordinatorBuilder
	Supervisor  SupervisorBuilder
}

type CoordinatorBuilder

type CoordinatorBuilder struct {
	Helper     HelperBuilder
	Repository coordinator.Repository
	// contains filtered or unexported fields
}

func (*CoordinatorBuilder) Build

func (*CoordinatorBuilder) Dependency

func (*CoordinatorBuilder) Lifecycle

func (cb *CoordinatorBuilder) Lifecycle(pid, reqID string) lifecycle.LifecycleBuilder

type Factory

type Factory struct {
	*Builder
}

func New

func New(builder *Builder) *Factory

type HelperBuilder

type HelperBuilder struct {
	UID     func() uid.UUID
	Backoff func() backoff.Builder
}

type MetadataBuilder

type MetadataBuilder struct {
	RepositoryBuilder metadata.Repository
}

func (*MetadataBuilder) Build

type RunnerBuiler

type RunnerBuiler struct {
	Helper             HelperBuilder
	TransporterBuilder runner.Transporter
}

func (*RunnerBuiler) Build

func (rb *RunnerBuiler) Build() runner.RunnerBuilder

type SupervisorBuilder

type SupervisorBuilder struct {
	Helper     HelperBuilder
	Repository supervisor.Repository
	// contains filtered or unexported fields
}

func (*SupervisorBuilder) Build

func (sb *SupervisorBuilder) Build(ctx context.Context, delay int) *supervisor.Supervisor

func (*SupervisorBuilder) Dependency

func (*SupervisorBuilder) Process

func (sb *SupervisorBuilder) Process(maxRetries int) (*process.Process, error)

Jump to

Keyboard shortcuts

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