Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompletedFunc ¶ added in v1.1.0
type CompletedFunc func(rw basedb.ReadWriter) error
CompletedFunc is a function that marks a migration as completed.
type Migration ¶
type Migration struct { Name string Run MigrationFunc }
Migration is a named MigrationFunc.
type MigrationFunc ¶
type MigrationFunc func(ctx context.Context, logger *zap.Logger, opt Options, key []byte, completed CompletedFunc) error
MigrationFunc is a function that performs a migration.
type Migrations ¶
type Migrations []Migration
Migrations is a slice of named migrations, meant to be executed from first to last (order is significant).
Click to show internal directories.
Click to hide internal directories.