Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶ added in v1.2.0
type CacheConfig struct { Address string `default:"localhost:6379" envconfig:"CACHE_ADDRESS"` Password string `default:"" envconfig:"CACHE_PASSWORD"` Database int `default:"0" envconfig:"CACHE_DATABASE"` EnableTLS bool `default:"false" envconfig:"CACHE_ENABLE_TLS"` ScanBatchSize int64 `default:"10000" envconfig:"CACHE_SCAN_BATCH_SIZE"` }
type Config ¶
type Config struct { DBConfig CacheConfig }
type DBConfig ¶
type DBConfig struct { DBHost string `default:"localhost:3306" envconfig:"DB_HOST"` DBUser string `default:"root" envconfig:"DB_USER"` DBPassword string `default:"" envconfig:"DB_PASSWORD"` DBName string `envconfig:"DB_NAME"` DBLocation string `default:"Local" envconfig:"DB_LOCATION"` DBEnableTLS bool `default:"false" envconfig:"DB_ENABLE_TLS"` DBCaCertPEM string `default:"/tmp/mysql-ca-cert.pem" envconfig:"DB_CA_CERT_PEM"` DBCustomTLSKey string `default:"custom" envconfig:"DB_CUSTOM_TLS_KEY"` DBConnPoolSize int `default:"5" envconfig:"DB_CONN_POOL_SIZE"` DBLogLevel string `default:"info" envconfig:"DB_LOG_LEVEL"` DBSlowThresholdMS int `default:"100" envconfig:"DB_SLOW_THRESHOLD_MS"` DBDefaultPageSize int `default:"10" envconfig:"DB_DEFAULT_PAGE_SIZE"` DBIgnoreRecordNotFoundError bool `default:"false" envconfig:"DB_IGNORE_RECORD_NOT_FOUND_ERROR"` }
Click to show internal directories.
Click to hide internal directories.