Documentation
¶
Overview ¶
Package config provides configurations for subcommands.
It consists of both configuration values shared by all microservices and values specific to this microservice.
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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGooseMySQL ¶
func GetGooseMySQL() (c *cobrax.GooseMySQLConfig, err error)
Types ¶
type ServeConfig ¶
type ServeConfig struct { MySQL *mysql.Config GooseMySQLDir string NATSURLs string STANClusterID string AuthAddrInt netx.Addr BindAddr netx.Addr BindMetricsAddr netx.Addr Path string TLSCACert string }
ServeConfig contains configuration for subcommand.
func GetServe ¶
func GetServe() (c *ServeConfig, err error)
GetServe validates and returns configuration for subcommand.
func MustGetServeTest ¶
func MustGetServeTest() *ServeConfig
MustGetServeTest returns config suitable for use in tests.
Click to show internal directories.
Click to hide internal directories.