supervisor

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

type Repository

type Repository interface {
	SaveSnapshot(ctx context.Context, s Snapshot) error
}

type Snapshot

type Snapshot struct {
	PID     string
	State   state.State
	Event   string
	Action  action.Action
	Payload interface{}
}

type Supervisor

type Supervisor struct {
	*core.Component
	// contains filtered or unexported fields
}

func New

func (*Supervisor) Check

func (*Supervisor) CreateProcess

func (s *Supervisor) CreateProcess(projectName, activityName, requestID string, maxRetries int) (process.ProcessBuilder, error)

func (*Supervisor) Monitor

func (s *Supervisor) Monitor()

func (*Supervisor) RegisterProcess

func (s *Supervisor) RegisterProcess(proc process.ProcessBuilder)

func (*Supervisor) Resume

func (s *Supervisor) Resume(proc process.ProcessBuilder, st state.State, event string, payload interface{})

func (*Supervisor) Shutdown

func (s *Supervisor) Shutdown()

func (*Supervisor) Start

func (s *Supervisor) Start(proc process.ProcessBuilder, payload interface{})

func (*Supervisor) Stop

func (s *Supervisor) Stop(proc process.ProcessBuilder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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