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 ( MonoPort = 17000 + iota ExamplePort ExampleMetricsPort AuthPort AuthPortInt AuthMetricsPort AuthGRPCGWPort )
Default ports.
View Source
const EnvPrefix = "MONO_"
EnvPrefix defines common prefix for environment variables.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.