Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action is a single step in a saga.
func NewAction ¶
func NewAction(name string, action, compensate ActionFunc) Action
NewAction creates a new action.
type ActionFunc ¶
ActionFunc is a generic action/compensation function. They will typically be bound receivers so that saga steps can share state between themselves.
Click to show internal directories.
Click to hide internal directories.