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 ¶
Click to show internal directories.
Click to hide internal directories.