Documentation
¶
Overview ¶
Package config provides configuration shared by microservices.
Default values can be obtained from various sources (constants, environment variables, etc.) and then overridden by flags.
As configuration is global you can get it only once for safety: you can call only one of Get… functions and call it just once.
Index ¶
Constants ¶
View Source
const ( MetricsPort = 16000 + iota // XXX Used in ms/metrics/service.go. ExampleMetricsPort )
Default ports for metrics.
View Source
const EnvPrefix = "MONO_"
EnvPrefix defines common prefix for environment variables.
View Source
const (
ExamplePort
)
Default ports.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.