fixtures

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresParam  = "postgres"
	MysqlParam     = "mysql"
	AerospikeParam = "aerospike"
	RedisParam     = "redis"
	MongoParam     = "mongo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB            *sql.DB
	Aerospike     *aerospikeClient.Client
	Mongo         *mongoAdapter.Client
	DbType        DbType
	Location      string
	Debug         bool
	FixtureLoader Loader
}

type DbType

type DbType int
const (
	Postgres DbType = iota
	Mysql
	Aerospike
	Redis
	CustomLoader // using external loader if gonkey used as a library
	Mongo
)

func FetchDbType

func FetchDbType(dbType string) DbType

type Loader

type Loader interface {
	Load(names []string) error
}

func NewLoader

func NewLoader(cfg *Config) Loader

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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