Documentation ¶
Index ¶
- type Context
- type Repository
- type Snapshot
- type Supervisor
- func (s *Supervisor) Check(proc process.ProcessBuilder) (lifecycle.HistoryNode, error)
- func (s *Supervisor) CreateProcess(projectName, activityName, requestID string, maxRetries int) (process.ProcessBuilder, error)
- func (s *Supervisor) Monitor()
- func (s *Supervisor) RegisterProcess(proc process.ProcessBuilder)
- func (s *Supervisor) Resume(proc process.ProcessBuilder, st state.State, event string, payload interface{})
- func (s *Supervisor) Shutdown()
- func (s *Supervisor) Start(proc process.ProcessBuilder, payload interface{})
- func (s *Supervisor) Stop(proc process.ProcessBuilder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Supervisor ¶
func New ¶
func New(ctx context.Context, delay int, repo Repository, repoCoord coordinator.Repository, uidGen uid.UUID, meta metadata.WorkFlowAggregateBuilder, handler runner.RunnerBuilder) *Supervisor
func (*Supervisor) Check ¶
func (s *Supervisor) Check(proc process.ProcessBuilder) (lifecycle.HistoryNode, error)
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)
Click to show internal directories.
Click to hide internal directories.