Documentation
¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin
- func (p *Plugin) BootStorage(storages ...eventsourcing.Storage)
- func (p *Plugin) Close() error
- func (p *Plugin) EventStore() *eventsourcing.EventStore
- func (p *Plugin) IsEnabled() bool
- func (p *Plugin) Name() string
- func (p *Plugin) Start() error
Constants ¶
View Source
const Name = "eventstore"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enable bool `env:"EVENTSTORE_ENABLE" default:"false" yaml:"enable"` Storages struct { BoltDB boltdb.Config `env:"EVENTSTORE_STORAGES_BOLTDB" yaml:"boltdb" json:"boltdb"` Postgres postgres.Config `env:"EVENTSTORE_STORAGES_POSTGRES" yaml:"postgres" json:"postgres"` } `env:"EVENTSTORE_STORAGES" yaml:"storages" json:"storages"` }
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) BootStorage ¶
func (p *Plugin) BootStorage(storages ...eventsourcing.Storage)
func (*Plugin) EventStore ¶
func (p *Plugin) EventStore() *eventsourcing.EventStore
Click to show internal directories.
Click to hide internal directories.