Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSnapshotStore ¶
func NewSnapshotStore(options ...SnapshotStoreOption) es.AggregateRootStoreMiddleware
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer implements msg.Consumer
func NewConsumer ¶
func NewConsumer(options ...ConsumerOption) *Consumer
NewConsumer constructs a new Consumer
type ConsumerOption ¶
type ConsumerOption func(*Consumer)
func WithConsumerLogger ¶
func WithConsumerLogger(logger log.Logger) ConsumerOption
type EventStore ¶
type EventStore struct {
// contains filtered or unexported fields
}
func NewEventStore ¶
func NewEventStore(options ...EventStoreOption) *EventStore
func (*EventStore) Load ¶
func (s *EventStore) Load(_ context.Context, root *es.AggregateRoot) error
func (*EventStore) Save ¶
func (s *EventStore) Save(_ context.Context, root *es.AggregateRoot) error
type EventStoreOption ¶
type EventStoreOption func(*EventStore)
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(options ...ProducerOption) *Producer
type ProducerOption ¶
type ProducerOption func(destination *Producer)
func WithProducerLogger ¶
func WithProducerLogger(logger log.Logger) ProducerOption
type SagaInstanceStore ¶
type SagaInstanceStore struct {
// contains filtered or unexported fields
}
func NewSagaInstanceStore ¶
func NewSagaInstanceStore() *SagaInstanceStore
type SnapshotStore ¶
type SnapshotStore struct {
// contains filtered or unexported fields
}
func (*SnapshotStore) Load ¶
func (s *SnapshotStore) Load(ctx context.Context, root *es.AggregateRoot) error
func (*SnapshotStore) Save ¶
func (s *SnapshotStore) Save(ctx context.Context, root *es.AggregateRoot) error
type SnapshotStoreOption ¶
type SnapshotStoreOption func(store *SnapshotStore)
func SnapshotStoreStrategy ¶
func SnapshotStoreStrategy(strategy es.SnapshotStrategy) SnapshotStoreOption
Click to show internal directories.
Click to hide internal directories.