saga

package
v0.0.0-...-eac6ddc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SagaCoordinator

type SagaCoordinator struct {
	Logger *zap.Logger
}

func NewSagaCoordinator

func NewSagaCoordinator(logger *zap.Logger) *SagaCoordinator

NewSagaCoordinator creates a new saga object

func (*SagaCoordinator) RunSaga

func (s *SagaCoordinator) RunSaga(ctx context.Context, operationName string, steps ...*saga.Step) error

RunSaga creates a new saga instance and runs the required steps

Jump to

Keyboard shortcuts

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