Documentation ¶
Index ¶
- Variables
- func All() cli.Commands
- func FetchDB(ctx *cli.Context, db *config.Database) (d *config.Database, err error)
- func MigrateCleanup(db *config.Database, log logger.Logger) cli.Command
- func MigrateCreate(defaultPath string) cli.Command
- func MigrateDown(db *config.Database, log logger.Logger) cli.Command
- func MigrateList(db *config.Database, log logger.Logger) cli.Command
- func MigratePlan(db *config.Database, log logger.Logger) cli.Command
- func MigrateUp(db *config.Database, log logger.Logger) cli.Command
- func MigrateVersion(db *config.Database, log logger.Logger) cli.Command
- func NewLogger() logger.Logger
- func ParseConfig(i interface{}) (*config.Database, error)
- func ParseDSN(dsn string) (*config.Database, error)
- type Logger
- func (l *Logger) Debug(i ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Debugj(j log.JSON)
- func (l *Logger) Debugw(message string, args ...interface{})
- func (l *Logger) Error(i ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Errorj(j log.JSON)
- func (l *Logger) Errorw(message string, args ...interface{})
- func (l *Logger) Fatal(i ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Fatalj(j log.JSON)
- func (l *Logger) Fatalw(message string, args ...interface{})
- func (l *Logger) Info(i ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Infoj(j log.JSON)
- func (l *Logger) Infow(message string, args ...interface{})
- func (l *Logger) Level() log.Lvl
- func (l *Logger) Named(name string) logger.Logger
- func (l *Logger) Output() io.Writer
- func (l *Logger) Panic(i ...interface{})
- func (l *Logger) Panicf(format string, args ...interface{})
- func (l *Logger) Panicj(j log.JSON)
- func (l *Logger) Panicw(message string, args ...interface{})
- func (l *Logger) Prefix() string
- func (l *Logger) Print(i ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Printj(j log.JSON)
- func (l *Logger) SetLevel(v log.Lvl)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(p string)
- func (l *Logger) Warn(i ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warnj(j log.JSON)
- func (l *Logger) Warnw(message string, args ...interface{})
- func (l *Logger) WithContext(fields map[string]interface{}) logger.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultLogger for commands: DefaultLogger = NewLogger() )
Functions ¶
func MigrateCleanup ¶
MigrateCleanup migrations
func MigrateCreate ¶
MigrateCreate new migration files
func MigrateDown ¶
MigrateDown migrations
func MigrateList ¶
MigrateList migrations
func MigratePlan ¶
MigratePlan migrations
func MigrateVersion ¶
MigrateVersion migrations
func ParseConfig ¶
ParseConfig to Database options
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger struct
Click to show internal directories.
Click to hide internal directories.