contracts

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSagaContracts

func RegisterSagaContracts(scheme scheme.KnownTypesRegistry)

RegisterSagaContracts registers all system saga contacts in specified scheme

Types

type CompensateSagaCommand

type CompensateSagaCommand struct {
	message.ObjectMeta
	SagaUID string `json:"saga_uid"`
}

type RecoverSagaCommand

type RecoverSagaCommand struct {
	message.ObjectMeta
	SagaUID string `json:"saga_uid"`
}

type SagaChildCompletedEvent

type SagaChildCompletedEvent struct {
	message.ObjectMeta
	SagaUID string `json:"saga_uid"`
}

type SagaCompletedEvent

type SagaCompletedEvent struct {
	message.ObjectMeta
	SagaUID string `json:"saga_uid"`
}

type StartSagaCommand

type StartSagaCommand struct {
	message.ObjectMeta
	SagaUID   string         `json:"saga_uid"`
	ParentUID string         `json:"parent_uid"`
	Saga      message.Object `json:"saga"`
}

StartSagaCommand once received will create SagaInstance, save it to Store and Start()

Jump to

Keyboard shortcuts

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