cbmigrant

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Migrations []Migration

Functions

This section is empty.

Types

type DefaultErrorHandler

type DefaultErrorHandler struct{}

func (DefaultErrorHandler) Error

func (d DefaultErrorHandler) Error(e error)

type DefaultLogger

type DefaultLogger struct{}

func (DefaultLogger) InfoF

func (d DefaultLogger) InfoF(category string, message string, args ...interface{})

type ErrorHandler

type ErrorHandler interface {
	Error(e error)
}

type Logger

type Logger interface {
	InfoF(category string, message string, args ...interface{})
}

type Migration

type Migration struct {
	Name string
	Up   func(db *gorm.DB) error
	Down func(db *gorm.DB) error
}

func GetMigrations

func GetMigrations() []Migration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL