Documentation ¶
Index ¶
- Variables
- func Configure(reset ...bool)
- type ConfigKey
- type ViperConfigKey
- func (config *ViperConfigKey) Get() string
- func (config *ViperConfigKey) GetAliases() []string
- func (config *ViperConfigKey) GetBool() bool
- func (config *ViperConfigKey) GetDefault() any
- func (config *ViperConfigKey) GetDuration() time.Duration
- func (config *ViperConfigKey) GetInt() int
- func (config *ViperConfigKey) GetKey() string
- func (config *ViperConfigKey) Set(value any)
Constants ¶
This section is empty.
Variables ¶
View Source
var AuditEnabled = Create(&ViperConfigKey{ Key: "audit.enabled", Default: false, })
View Source
var CacheConnectionRetryAttempts = Create(&ViperConfigKey{
Key: "cache.connection.retry.attempts",
Default: 10,
})
View Source
var CacheConnectionRetryDelay = Create(&ViperConfigKey{
Key: "cache.connection.retry.delay",
Default: "5s",
})
View Source
var CacheConnectionRetryEnabled = Create(&ViperConfigKey{ Key: "cache.connection.retry.enabled", Default: true, })
View Source
var CacheType = Create(&ViperConfigKey{
Key: "cache.type",
Default: "MEMORY",
})
View Source
var CacheUri = Create(&ViperConfigKey{ Key: "cache.uri", Aliases: []string{"redis.uri"}, Default: nil, })
View Source
var DebugEnabled = Create(&ViperConfigKey{ Key: "debug", Default: false, })
View Source
var ElasticAddress = Create(&ViperConfigKey{
Key: "elastic.address",
Default: "http://localhost:9200/",
})
View Source
var ElasticPassword = Create(&ViperConfigKey{
Key: "elastic.password",
})
View Source
var ElasticUser = Create(&ViperConfigKey{
Key: "elastic.user",
})
View Source
var GrpcEnabled = Create(&ViperConfigKey{ Key: "grpc.enabled", Default: true, })
View Source
var GrpcPort = Create(&ViperConfigKey{
Key: "grpc.port",
Default: 8081,
})
View Source
var HousekeeperEnabled = Create(&ViperConfigKey{ Key: "housekeeper.enabled", Default: true, })
View Source
var HousekeeperTaskMaxElementsDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.max_elements.delay",
Default: "1s",
})
View Source
var HousekeeperTaskMetricsDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.metrics.delay",
Default: "60s",
})
View Source
var HousekeeperTaskTTLDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.ttl.delay",
Default: "1s",
})
View Source
var HousekeeperTaskTimeoutDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.timeout.delay",
Default: "1s",
})
View Source
var HousekeeperTaskUnlockDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.unlock.delay",
Default: "1s",
})
View Source
var HousekeeperTaskUpdateDelay = Create(&ViperConfigKey{
Key: "housekeeper.task.update.delay",
Default: "1s",
})
View Source
var LogType = Create(&ViperConfigKey{
Key: "log_type",
Default: "json",
})
View Source
var MetricsEnabled = Create(&ViperConfigKey{ Key: "metrics.enabled", Default: true, })
View Source
var MetricsHistogramBuckets = Create(&ViperConfigKey{
Key: "metrics.histogram.buckets",
Default: "0,1,2,5,10,15,20,30,35,50,100,200,400,600,800,1000,1500,2000,5000,10000",
})
View Source
var MetricsOpenMetricsEnabled = Create(&ViperConfigKey{ Key: "metrics.openmetrics.enabled", Default: true, })
View Source
var MetricsPath = Create(&ViperConfigKey{
Key: "metrics.path",
Default: "/metrics",
})
View Source
var MetricsPort = Create(&ViperConfigKey{
Key: "metrics.port",
Default: 22022,
})
View Source
var MongoAddresses = Create(&ViperConfigKey{ Key: "mongo.addresses", Aliases: []string{"mongodb.addresses"}, Default: "localhost:27017", })
View Source
var MongoAuthDb = Create(&ViperConfigKey{ Key: "mongo.auth_db", Aliases: []string{"mongodb.auth_db"}, })
View Source
var MongoCollection = Create(&ViperConfigKey{ Key: "mongo.collection", Aliases: []string{"mongodb.collection"}, Default: "queue", })
View Source
var MongoDatabase = Create(&ViperConfigKey{ Key: "mongo.database", Aliases: []string{"mongodb.database"}, Default: project.Name, })
View Source
var MongoMaxPoolSize = Create(&ViperConfigKey{ Key: "mongo.max_pool_size", Aliases: []string{"mongodb.max_pool_size"}, Default: 100, })
View Source
var MongoPassword = Create(&ViperConfigKey{ Key: "mongo.password", Aliases: []string{"mongodb.password"}, })
View Source
var MongoQueueConfigurationCollection = Create(&ViperConfigKey{ Key: "mongo.queue_configuration_collection", Aliases: []string{"mongodb.queue_configuration_collection"}, Default: "queue_configuration", })
View Source
var MongoSsl = Create(&ViperConfigKey{ Key: "mongo.ssl", Aliases: []string{"mongodb.ssl"}, Default: false, })
View Source
var MongoUser = Create(&ViperConfigKey{ Key: "mongo.user", Aliases: []string{"mongodb.user"}, })
View Source
var RedisAddress = Create(&ViperConfigKey{
Key: "redis.address",
Default: "localhost",
})
View Source
var RedisDB = Create(&ViperConfigKey{
Key: "redis.db",
Default: 0,
})
View Source
var RedisPassword = Create(&ViperConfigKey{
Key: "redis.password",
})
View Source
var RedisPort = Create(&ViperConfigKey{
Key: "redis.port",
Default: 6379,
})
View Source
var StorageConnectionRetryAttempts = Create(&ViperConfigKey{
Key: "storage.connection.retry.attempts",
Default: 10,
})
View Source
var StorageConnectionRetryDelay = Create(&ViperConfigKey{
Key: "storage.connection.retry.delay",
Default: "5s",
})
View Source
var StorageConnectionRetryEnabled = Create(&ViperConfigKey{ Key: "storage.connection.retry.enabled", Default: true, })
View Source
var StorageType = Create(&ViperConfigKey{
Key: "storage.type",
Default: "MEMORY",
})
View Source
var StorageUri = Create(&ViperConfigKey{ Key: "storage.uri", Aliases: []string{"mongo.uri", "mongodb.uri"}, Default: nil, })
View Source
var TlsClientAuthType = Create(&ViperConfigKey{
Key: "tls.client.auth_type",
Default: "NoClientCert",
})
View Source
var TlsClientCertFilePaths = Create(&ViperConfigKey{
Key: "tls.client.cert_file_paths",
})
View Source
var TlsServerCertFilePaths = Create(&ViperConfigKey{
Key: "tls.server.cert_file_paths",
})
View Source
var TlsServerKeyFilePaths = Create(&ViperConfigKey{
Key: "tls.server.key_file_paths",
})
Functions ¶
Types ¶
type ConfigKey ¶
type ViperConfigKey ¶ added in v0.0.11
func (*ViperConfigKey) Get ¶ added in v0.0.11
func (config *ViperConfigKey) Get() string
Should never be called before config is initialized using config.Configure()
func (*ViperConfigKey) GetAliases ¶ added in v0.0.11
func (config *ViperConfigKey) GetAliases() []string
func (*ViperConfigKey) GetBool ¶ added in v0.0.11
func (config *ViperConfigKey) GetBool() bool
Should never be called before config is initialized using config.Configure()
func (*ViperConfigKey) GetDefault ¶ added in v0.0.11
func (config *ViperConfigKey) GetDefault() any
func (*ViperConfigKey) GetDuration ¶ added in v0.0.11
func (config *ViperConfigKey) GetDuration() time.Duration
Should never be called before config is initialized using config.Configure()
func (*ViperConfigKey) GetInt ¶ added in v0.0.11
func (config *ViperConfigKey) GetInt() int
Should never be called before config is initialized using config.Configure()
func (*ViperConfigKey) GetKey ¶ added in v0.0.11
func (config *ViperConfigKey) GetKey() string
func (*ViperConfigKey) Set ¶ added in v0.0.11
func (config *ViperConfigKey) Set(value any)
Click to show internal directories.
Click to hide internal directories.