config

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: MPL-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	EncryptionKey  string `mapstructure:"encryption_key"`
}

func LoadBaseServiceConfig

func LoadBaseServiceConfig(prefix string, httpPort string) BaseSvcConfig

type CacheConfig

type CacheConfig struct {
	URL  string `mapstructure:"url"`
	Pass string `mapstructure:"pass"`
	DB   string `mapstructure:"db"`
}

func LoadCacheConfig

func LoadCacheConfig(prefix string) CacheConfig

type EncryptionKey

type EncryptionKey struct {
	Key string `mapstructure:"key"`
}

func LoadEncryptionKey

func LoadEncryptionKey(prefix string) EncryptionKey

type EsConfig

type EsConfig struct {
	URL      string `mapstructure:"url"`
	Pass     string `mapstructure:"pass"`
	DB       string `mapstructure:"db"`
	Consumer string `mapstructure:"consumer"`
}

func LoadEsConfig

func LoadEsConfig(prefix string) EsConfig

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 InMemoryCacheConfig added in v0.26.0

type InMemoryCacheConfig struct {
	DefaultExpiration time.Duration `mapstructure:"default_expiration"`
}

func LoadInMemoryCacheConfig added in v0.26.0

func LoadInMemoryCacheConfig(prefix string) InMemoryCacheConfig

type JaegerConfig

type JaegerConfig struct {
	URL string `mapstructure:"url"`
}

func LoadJaegerConfig

func LoadJaegerConfig(prefix string) JaegerConfig

type MFSDKConfig

type MFSDKConfig struct {
	ThingsURL string `mapstructure:"things_url"`
}

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 OtelConfig

type OtelConfig struct {
	Enable   string `mapstructure:"enable"`
	KafkaUrl string `mapstructure:"kafka_url"`
}

func LoadOtelConfig

func LoadOtelConfig(prefix string) OtelConfig

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL