Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTracerName = "github.com/oinume/lekcije"
)
Variables ¶
View Source
var DefaultVars = &Vars{}
Functions ¶
func IsDevelopmentEnv ¶
func IsDevelopmentEnv() bool
func IsLocalEnv ¶
func IsLocalEnv() bool
func IsProductionEnv ¶
func IsProductionEnv() bool
func LocalLocation ¶
func MustProcessDefault ¶
func MustProcessDefault()
func WebURLScheme ¶
Types ¶
type Vars ¶
type Vars struct { *MySQL *Trace NodeEnv string `env:"NODE_ENV"` ServiceEnv string `env:"LEKCIJE_ENV" required:"true"` GCPProjectID string `env:"GCP_PROJECT_ID"` GCPServiceAccountKey string `env:"GCP_SERVICE_ACCOUNT_KEY"` EnableFetcherHTTP2 bool `env:"ENABLE_FETCHER_HTTP2" default:"true"` EnableStackdriverProfiler bool `env:"ENABLE_STACKDRIVER_PROFILER"` GoogleClientID string `env:"GOOGLE_CLIENT_ID"` GoogleClientSecret string `env:"GOOGLE_CLIENT_SECRET"` GoogleAnalyticsID string `env:"GOOGLE_ANALYTICS_ID"` HTTPPort int `env:"PORT" default:"4001"` RollbarAccessToken string `env:"ROLLBAR_ACCESS_TOKEN"` VersionHash string `env:"VERSION_HASH"` DebugSQL bool `env:"DEBUG_SQL"` LocalLocation *time.Location }
func MustProcess ¶
func MustProcess() *Vars
func (*Vars) IsDevelopmentEnv ¶
func (*Vars) IsLocalEnv ¶
func (*Vars) IsProductionEnv ¶
Click to show internal directories.
Click to hide internal directories.