component

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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSagaApiServer

func WithSagaApiServer(mux *http.ServeMux) configOption

func WithSagaUIDService

func WithSagaUIDService(svc saga.SagaUIDService) configOption

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

func NewSagaComponent

func NewSagaComponent(sagaStoreFactory StoreFactory, sagaMutex mutex.Mutex, opts ...configOption) *Component

func (Component) Init

func (c Component) Init(mBus *foreman.MessageBus) error

func (*Component) RegisterContracts

func (c *Component) RegisterContracts(contracts ...message.Object)

func (*Component) RegisterSagaEndpoints

func (c *Component) RegisterSagaEndpoints(endpoints ...endpoint.Endpoint)

func (*Component) RegisterSagas

func (c *Component) RegisterSagas(sagas ...saga.Saga)

type StoreFactory

type StoreFactory func(msgMarshaller message.Marshaller) (saga.Store, error)

Jump to

Keyboard shortcuts

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