env

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.9.0_SNAPSHOT"

VERSION is the version of this gopa

Variables

This section is empty.

Functions

func GetBuildDate added in v0.9.0

func GetBuildDate() string

GetBuildDate returns the build datetime of current gopa package

func GetLastCommitLog added in v0.9.0

func GetLastCommitLog() string

GetLastCommitLog returns last commit information of source code

func GetModuleConfig

func GetModuleConfig(name string) *config.Config

GetModuleConfig return specify module's config

func GetWelcomeMessage

func GetWelcomeMessage() string

GetWelcomeMessage print welcome message

Types

type Env

type Env struct {

	// static configs
	SystemConfig *config.SystemConfig

	// dynamic configs
	RuntimeConfig *config.RuntimeConfig

	IsDebug bool

	LoggingLevel string
}

Env is environment object of gopa

func EmptyEnv

func EmptyEnv() *Env

EmptyEnv return a empty env instance

func Environment

func Environment(configFile string) *Env

Environment create a new env instance from a config

Jump to

Keyboard shortcuts

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