Documentation ¶
Index ¶
- func AddCompensation(ctx Context, op compensationOp)
- func Cancel(ctx Context)
- func Compensate(ctx Context) error
- func Drain(sigCh workflow.ReceiveChannel) int
- type CompensationError
- type Context
- type ReceiveWithTimeoutResult
- type SagaOptions
- type Worker
- func (w *Worker) AddStep(name string, invoke activity, compensate activity)
- func (w *Worker) AddWorkflow(name string, flow flow)
- func (w *Worker) ExecuteStep(name string, options client.StartWorkflowOptions)
- func (w *Worker) ExecuteWorker(name string, options client.StartWorkflowOptions)
- func (w *Worker) GetName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCompensation ¶
func AddCompensation(ctx Context, op compensationOp)
func Compensate ¶
func Drain ¶
func Drain(sigCh workflow.ReceiveChannel) int
Types ¶
type CompensationError ¶
type CompensationError struct {
Errors []error
}
func (*CompensationError) AddError ¶
func (e *CompensationError) AddError(err error)
func (*CompensationError) Error ¶
func (e *CompensationError) Error() string
func (*CompensationError) HasErrors ¶
func (e *CompensationError) HasErrors() bool
type ReceiveWithTimeoutResult ¶
func ReceiveWithTimeout ¶
func ReceiveWithTimeout(ctx workflow.Context, sigCh workflow.ReceiveChannel, valuePtr interface{}, timeout time.Duration) ReceiveWithTimeoutResult
type SagaOptions ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker is a Worker in the Saga.
func (*Worker) AddWorkflow ¶
func (*Worker) ExecuteStep ¶
func (w *Worker) ExecuteStep( name string, options client.StartWorkflowOptions, )
func (*Worker) ExecuteWorker ¶
func (w *Worker) ExecuteWorker( name string, options client.StartWorkflowOptions, )
Click to show internal directories.
Click to hide internal directories.