environment

package
v0.0.0-...-4383a04 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "none"
	BuildTime = "none"
	BuildUser = "none"
	BuildHash = "none"
)

Functions

This section is empty.

Types

type Environment

type Environment interface {
	Init() error
	Close()
	Cancel() bool
	Workers() int
	Log() *log.Logger
	ServiceFactory() service.ServiceFactory
	ProjectId() int64
	SetProjectId(id int64)
	Printf(format string, a ...interface{})
	Println(a ...interface{})
	Fatalf(format string, a ...interface{})
	Fatalln(a ...interface{})
}

func GetProdEnv

func GetProdEnv(dsn string, workers int) (Environment, error)

func GetTestEnv

func GetTestEnv(out io.Writer) (Environment, error)

func NewEnvironment

func NewEnvironment(dsn string, out io.Writer, workers int) (Environment, error)

Jump to

Keyboard shortcuts

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