Documentation ¶
Overview ¶
Package core contains business logic application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core interface { Migrate(ctx context.Context, dir string, cfg Config) error NewMigrate(_ context.Context, dir, name string) error }
Core manages the business logic of the application.
type Fs ¶
type Fs interface { Walk(dir string) ([]Migrate, error) CreateMigrate(dir, name string, m Migrate) error }
Fs manages information from disk.
type MigrateCmd ¶
type MigrateCmd uint8
MigrateCmd migration command.
const ( Up MigrateCmd = iota + 1 // up UpOne // up-one UpTo // up-to Down // down DownTo // down-to Reset // reset )
Migration command.
func (MigrateCmd) String ¶
func (i MigrateCmd) String() string
Click to show internal directories.
Click to hide internal directories.