storage

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedLoadMongoConfig    = errors.New("failed to load mongo config")
	ErrFailedLoadMySQLConfig    = errors.New("failed to load MySQL config")
	ErrFailedLoadPostgresConfig = errors.New("failed to load PostgreSQL config")
)
View Source
var (
	ErrFailedCreateInstanceMongo    = errors.New("failed to create mongo instance")
	ErrFailedCreateInstanceMySQL    = errors.New("failed to create MySQL instance")
	ErrFailedCreateInstancePostgres = errors.New("failed to create PostgreSQL instance")
)
View Source
var (
	ErrUnableToGetMongoMigrator    = errors.New("unable to get mongo migrator")
	ErrUnableToGetMySQLMigrator    = errors.New("unable to get MySQL migrator")
	ErrUnableToGetPostgresMigrator = errors.New("unable to get PostgreSQL migrator")
)
View Source
var (
	ErrMongoMigrationsIsNotEnabled    = errors.New("mongo migrations is not enabled")
	ErrMySQLMigrationsIsNotEnabled    = errors.New("MySQL migrations is not enabled")
	ErrPostgresMigrationsIsNotEnabled = errors.New("PostgreSQL migrations is not enabled")
)

Functions

This section is empty.

Types

type Factorier

type Factorier interface {
	Make(ctx context.Context) ([]Storager, error)
}

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(logger logger.Logger) *Factory

func (*Factory) Make

func (f *Factory) Make(ctx context.Context) ([]Storager, error)

type Storager

type Storager interface {
	Name() string
	Up() error
	Down() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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