Documentation
¶
Index ¶
- func Aggregate(typ cqrs.AggregateType, factory cqrs.AggregateFactory)
- func Event(typ cqrs.EventType, proto cqrs.EventData)
- type AggregateRepositoryFactory
- type CommandBusFactory
- type EventBusFactory
- type EventStoreFactory
- type Option
- func Logger(logger *log.Logger) Option
- func WithAggregateConfig(cfg cqrs.AggregateConfig) Option
- func WithAggregateRepositoryFactory(f AggregateRepositoryFactory) Option
- func WithCommandBusFactory(f CommandBusFactory) Option
- func WithEventBusFactory(f EventBusFactory) Option
- func WithEventConfig(cfg cqrs.EventConfig) Option
- func WithEventStoreFactory(f EventStoreFactory) Option
- func WithLogger(logger *log.Logger) Option
- func WithSnapshotConfig(cfg aggregate.SnapshotConfig) Option
- func WithSnapshotRepositoryFactory(f SnapshotRepositoryFactory) Option
- type Setup
- type SnapshotRepositoryFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregateRepositoryFactory ¶
type AggregateRepositoryFactory func(context.Context, cqrs.Container) (cqrs.AggregateRepository, error)
AggregateRepositoryFactory ...
type CommandBusFactory ¶
CommandBusFactory ...
type EventBusFactory ¶
EventBusFactory ...
type EventStoreFactory ¶
EventStoreFactory ...
type Option ¶
type Option func(*Setup)
Option is a setup option.
func WithAggregateConfig ¶ added in v0.11.0
func WithAggregateConfig(cfg cqrs.AggregateConfig) Option
WithAggregateConfig adds a cqrs.AggregateConfig to the setup.
func WithAggregateRepositoryFactory ¶
func WithAggregateRepositoryFactory(f AggregateRepositoryFactory) Option
WithAggregateRepositoryFactory adds an EventStoreFactory to the setup.
func WithCommandBusFactory ¶
func WithCommandBusFactory(f CommandBusFactory) Option
WithCommandBusFactory adds an EventStoreFactory to the setup.
func WithEventBusFactory ¶
func WithEventBusFactory(f EventBusFactory) Option
WithEventBusFactory adds an EventStoreFactory to the setup.
func WithEventConfig ¶ added in v0.11.0
func WithEventConfig(cfg cqrs.EventConfig) Option
WithEventConfig adds a cqrs.EventConfig to the setup.
func WithEventStoreFactory ¶
func WithEventStoreFactory(f EventStoreFactory) Option
WithEventStoreFactory adds an EventStoreFactory to the setup.
func WithSnapshotConfig ¶ added in v0.11.1
func WithSnapshotConfig(cfg aggregate.SnapshotConfig) Option
WithSnapshotConfig adds a snapshot config to the setup.
func WithSnapshotRepositoryFactory ¶
func WithSnapshotRepositoryFactory(f SnapshotRepositoryFactory) Option
WithSnapshotRepositoryFactory adds an EventStoreFactory to the setup.
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
Setup is the setup helper.
type SnapshotRepositoryFactory ¶
type SnapshotRepositoryFactory func(context.Context, cqrs.Container) (cqrs.SnapshotRepository, error)
SnapshotRepositoryFactory ...