Versions in this module Expand all Collapse all v1 v1.0.0 Feb 25, 2023 Changes in this version + func UnmarshalThingsFromCursor(ctx context.Context, cur *mongo.Cursor) ([]interface{}, error) + type Migration interface + Execute func(context.Context, *mongo.Database) error + Version func() int + type Migration0001SplitThings struct + func (m *Migration0001SplitThings) Execute(ctx context.Context, db *mongo.Database) error + func (m *Migration0001SplitThings) Version() int + type Migration0002AddThingIds struct + func (m *Migration0002AddThingIds) Execute(ctx context.Context, db *mongo.Database) error + func (m *Migration0002AddThingIds) Version() int + type MigrationProvider interface + Migrations func() []Migration + func NewMongoMigrationProvider() MigrationProvider + type Migrator struct + func (m *Migrator) Execute(ctx context.Context, provider MigrationProvider, db *mongo.Database, ...) error