config

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PostgresqlHosts               string        `koanf:"postgresql_hosts"`
	PostgresqlDbName              string        `koanf:"postgresql_db_name"`
	PostgresqlUsername            string        `koanf:"postgresql_username"`
	PostgresqlPassword            string        `koanf:"postgresql_password"`
	PostgresqlSslMode             string        `koanf:"postgresql_ssl_mode"`
	PostgresqlPort                string        `koanf:"postgresql_port"`
	RedisHosts                    string        `koanf:"redis_hosts"`
	RedisPort                     string        `koanf:"redis_port"`
	RedisUsername                 string        `koanf:"redis_username"`
	RedisPassword                 string        `koanf:"redis_password"`
	RedisReadTimeout              time.Duration `koanf:"redis_read_time_out"`
	RedisWriteTimeout             time.Duration `koanf:"redis_write_time_out"`
	PostgresqlReadTimeout         time.Duration `koanf:"postgresql_read_time_out"`
	PostgresqlWriteTimeout        time.Duration `koanf:"postgresql_write_time_out"`
	InMemoryDbUpdateInterval      time.Duration `koanf:"in_memory_db_update_interval"`
	OpenAiKey                     string        `koanf:"openai_key"`
	StatsProvider                 string        `koanf:"stats_provider"`
	AdminPass                     string        `koanf:"admin_pass"`
	ProxyTimeout                  time.Duration `koanf:"proxy_timeout"`
	NumberOfEventMessageConsumers int           `koanf:"number_of_event_message_consumers"`
	OpenAiApiKey                  string        `koanf:"openai_api_key"`
	CustomPolicyDetectionTimeout  time.Duration `koanf:"custom_policy_detection_timeout"`
	AmazonRegion                  string        `koanf:"amazon_region"`
	AmazonRequestTimeout          time.Duration `koanf:"amazon_request_timeout"`
	AmazonConnectionTimeout       time.Duration `koanf:"amazon_connection_timeout"`
}

func LoadConfig added in v1.26.0

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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