test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: BSD-3-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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