process

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	*core.Component
	coordinator.CoordinatorBuilder

	PID string
	// contains filtered or unexported fields
}

func New

func New(uidGen uid.UUID, maxRetries int) (*Process, error)

func (*Process) Attach

func (p *Process) Attach(coord coordinator.CoordinatorBuilder)

func (*Process) GetPID

func (p *Process) GetPID() string

func (*Process) Reset

func (p *Process) Reset()

func (*Process) Retry

func (p *Process) Retry(ctx context.Context, payload interface{}) error

type ProcessBuilder

type ProcessBuilder interface {
	coordinator.CoordinatorBuilder
	GetPID() string
	Attach(coord coordinator.CoordinatorBuilder)
	Retry(ctx context.Context, payload interface{}) error
	Reset()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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