Documentation ¶
Index ¶
- Constants
- func EventStore(ctx context.Context, eventCfg cqrs.EventConfig, opts ...Option) (cqrs.EventStore, error)
- func WithEventStoreFactory(options ...Option) setup.Option
- type Config
- type Option
- func ClientOptions(options ...*options.ClientOptions) Option
- func CreateIndexes() Option
- func Database(name string) Option
- func PublishEvents(publish bool) Option
- func Publisher(publisher cqrs.EventPublisher) Option
- func ResolvePublisher(resolve func() cqrs.EventPublisher) Option
- func Transactions(use bool) Option
- func URI(uri string) Option
Constants ¶
View Source
const (
// DefaultURI ...
DefaultURI = "mongodb://localhost:27017"
)
Variables ¶
This section is empty.
Functions ¶
func EventStore ¶ added in v0.11.0
func EventStore(ctx context.Context, eventCfg cqrs.EventConfig, opts ...Option) (cqrs.EventStore, error)
EventStore ...
func WithEventStoreFactory ¶
WithEventStoreFactory ...
Types ¶
type Config ¶
type Config struct { URI string Database string Publisher cqrs.EventPublisher ResolvePublisher func() cqrs.EventPublisher PublishEvents bool Transactions bool CreateIndexes bool ClientOptions []*options.ClientOptions }
Config ...
Click to show internal directories.
Click to hide internal directories.