Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // the server port. Defaults to 8080 ServerPort int `yaml:"server_port" env:"SERVER_PORT"` // the data source name (DSN) for connecting to the database. required. DSN string `yaml:"dsn" env:"DSN,secret"` // JWT signing key. required. JWTSigningKey string `yaml:"jwt_signing_key" env:"JWT_SIGNING_KEY,secret"` // JWT expiration in hours. Defaults to 72 hours (3 days) JWTExpiration int `yaml:"jwt_expiration" env:"JWT_EXPIRATION"` // KAFKA_URL required. KAFKA_URL string `yaml:"kafka_url" env:"KAFKA_URL,secret"` // KAFKA_TIMEOUT. required. KAFKA_TIMEOUT string `yaml:"kafka_timeout" env:"KAFKA_TIMEOUT,secret"` // KAFKA_TOPIC. required. KAFKA_TOPIC string `yaml:"kafka_topic" env:"KAFKA_TOPIC,secret"` // ELASTIC_URL required. ELASTIC_URL string `yaml:"elastic_url" env:"ELASTIC_URL,secret"` // ELASTIC_TIMEOUT. required. ELASTIC_TIMEOUT string `yaml:"elastic_timeout" env:"ELASTIC_TIMEOUT,secret"` // ELASTIC_INDEX. required. ELASTIC_INDEX string `yaml:"elastic_index" env:"ELASTIC_INDEX,secret"` // REDIS_URL required. REDIS_URL string `yaml:"redis_url" env:"REDIS_URL,secret"` // REDIS_EXPIRED. required. REDIS_EXPIRED string `yaml:"redis_expired" env:"REDIS_EXPIRED,secret"` }
Config represents an application configuration.
Click to show internal directories.
Click to hide internal directories.