test

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MySQLConfig = Config{
	"%s:%s@tcp(%s:%s)/%s",
	"ubuntu",
	"",
	"127.0.0.1",
	"3306",
	"circle_test",
}

MySQLConfig stores the configuration of our mysql test server

View Source
var PostgresConfig = Config{
	"postgres://%s:%s@%s:%s/%s?sslmode=disable",
	"ubuntu",
	"",
	"127.0.0.1",
	"5432",
	"circle_test",
}

PostgresConfig stores the configuration of our postgres test server

Functions

This section is empty.

Types

type Config

type Config struct {
	Template string
	User     string
	Password string
	Host     string
	Port     string
	DBName   string
}

Config stores the configuration of mysql and postgres databases for testing purposes

func (Config) DSN

func (c Config) DSN() string

DSN returns the formatted DSN corresponding to each configuration

Jump to

Keyboard shortcuts

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