Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environments ¶
type Environments struct { Port string `default:"7712" split_words:"true"` Debug bool `default:"false" split_words:"true"` AccessLog bool `default:"false" split_words:"true"` SpecEnabled bool `default:"false" split_words:"true"` SpecFiles string `default:"./swagger-ui" split_words:"true"` LogLevel string `default:"warn" split_words:"true"` // bigtable ProjectID string `split_words:"true"` InstanceID string `split_words:"true"` TableName string `split_words:"true"` // secret Secret string `split_words:"true"` }
Environments "split_words" means underscores will be inserted to env name before uppercase's letters except the first letter. ex. AccessLog => ACCESS_LOG IF the env name contains an abbreviation (e.g. ID, URL, or API), please use "envconfig" rather than "split_words".
var ( // Env is worker's environment variable struct. Env Environments )
Click to show internal directories.
Click to hide internal directories.