Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSvcConfig ¶
type BaseSvcConfig struct {
LogLevel string `mapstructure:"log_level"`
HttpPort string `mapstructure:"http_port"`
HttpServerCert string `mapstructure:"server_cert"`
HttpServerKey string `mapstructure:"server_key"`
}
func LoadBaseServiceConfig ¶
func LoadBaseServiceConfig(prefix string, httpPort string) BaseSvcConfig
type EsConfig ¶
type EsConfig struct {
URL string `mapstructure:"url"`
Pass string `mapstructure:"pass"`
DB string `mapstructure:"db"`
Consumer string `mapstructure:"consumer"`
}
func LoadEsConfig ¶
type GRPCConfig ¶
type GRPCConfig struct {
Service string
URL string `mapstructure:"url"`
Port string `mapstructure:"port"`
Timeout string `mapstructure:"timeout"`
CaCerts string `mapstructure:"ca_certs"`
ClientTLS string `mapstructure:"client_tls"`
ServerCert string `mapstructure:"server_cert"`
ServerKey string `mapstructure:"server_key"`
}
func LoadGRPCConfig ¶
func LoadGRPCConfig(prefix string, svc string) GRPCConfig
type JaegerConfig ¶
type JaegerConfig struct {
URL string `mapstructure:"url"`
}
func LoadJaegerConfig ¶
func LoadJaegerConfig(prefix string) JaegerConfig
type MFSDKConfig ¶
type MFSDKConfig struct {
BaseURL string `mapstructure:"base_url"`
ThingsPrefix string `mapstructure:"things_prefix"`
}
func LoadMFSDKConfig ¶
func LoadMFSDKConfig(prefix string) MFSDKConfig
type NatsConfig ¶
type NatsConfig struct {
URL string `mapstructure:"url"`
ConsumerCfgPath string `mapstructure:"config_path"`
}
func LoadNatsConfig ¶
func LoadNatsConfig(prefix string) NatsConfig
type PostgresConfig ¶
type PostgresConfig struct {
Host string `mapstructure:"host"`
Port string `mapstructure:"port"`
User string `mapstructure:"user"`
Pass string `mapstructure:"pass"`
DB string `mapstructure:"db"`
SSLMode string `mapstructure:"ssl_mode"`
SSLCert string `mapstructure:"ssl_cert"`
SSLKey string `mapstructure:"ssl_key"`
SSLRootCert string `mapstructure:"ssl_root_cert"`
}
func LoadPostgresConfig ¶
func LoadPostgresConfig(prefix string, db string) PostgresConfig
Click to show internal directories.
Click to hide internal directories.