Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2025 Changes in this version + const LoggerCreatorGroup + const LoggerDriverDefault + const MigrationGroup + const MigratorCreatorGroup + const MigratorDriverDefault + const PathBoot + const PathDefaultConnection + const PathDefaultLogChannel + const PathDefaultLogDoneLevel + const PathDefaultLogErrorLevel + const PathDefaultLogStartLevel + const PathDefaultLogger + const PathLoggers + const PathMigrators + var DefaultConnection = "" + var DefaultLogChannel = "flam" + var DefaultLogDoneLevel = log.Info + var DefaultLogErrorLevel = log.Error + var DefaultLogStartLevel = log.Info + var DefaultLogger = "" + var ErrMigrationNotFound = errors.New("migration not found") + func NewProvider() flam.Provider + type Facade interface + AddLogger func(id string, logger Logger) error + AddMigrator func(id string, migrator Migrator) error + GetLogger func(id string) (Logger, error) + GetMigrator func(id string) (Migrator, error) + HasLogger func(id string) bool + HasMigrator func(id string) bool + ListLoggers func() []string + ListMigrators func() []string + type Info struct + Description string + InstalledAt *time.Time + Version string + type Logger interface + LogDownDone func(migration Info) error + LogDownError func(migration Info, e error) error + LogDownStart func(migration Info) error + LogUpDone func(migration Info) error + LogUpError func(migration Info, e error) error + LogUpStart func(migration Info) error + type LoggerCreator interface + Accept func(config flam.Bag) bool + Create func(config flam.Bag) (Logger, error) + type Migration interface + Description func() string + Down func(connection database.Connection) error + Group func() string + Up func(connection database.Connection) error + Version func() string + type Migrator interface + CanDown func() bool + CanUp func() bool + Current func() (*Info, error) + Down func() error + DownAll func() error + List func() ([]Info, error) + Up func() error + UpAll func() error + type MigratorCreator interface + Accept func(config flam.Bag) bool + Create func(config flam.Bag) (Migrator, error)