Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
func Migrate(ctx context.Context, es *eventstore.Eventstore, migration Migration) (err error)
func RegisterMappers ¶
func RegisterMappers(es *eventstore.Eventstore)
func SetupMapper ¶
func SetupMapper(event *repository.Event) (eventstore.Event, error)
Types ¶
type RepeatableMigration ¶
type SetupStep ¶
type SetupStep struct { eventstore.BaseEvent `json:"-"` Name string `json:"name"` Error error `json:"error,omitempty"` LastRun interface{} `json:"lastRun,omitempty"` // contains filtered or unexported fields }
SetupStep is the command pushed on the eventstore
func (*SetupStep) UniqueConstraints ¶
func (s *SetupStep) UniqueConstraints() []*eventstore.EventUniqueConstraint
func (*SetupStep) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.