Documentation ¶
Index ¶
Constants ¶
View Source
const ( MainComponentId = 1 MainGroupId = 1 RedisExpire = 1 * time.Hour ShutdownTimeout = 1 * time.Minute MaxLoopInExecution = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresConfig ¶
type RedisConfig ¶
type ServiceConfig ¶
type ServiceConfig struct { LoggerType string `env:"LOGGER_TYPE,required"` WebhookPath string `env:"WEBHOOK_PATH,required"` ListenAddress string `env:"LISTEN_ADDRESS,required"` Redis RedisConfig Pg PostgresConfig NatsURL string `env:"NATS_URL,required"` }
func GetConfig ¶
func GetConfig() (*ServiceConfig, error)
Click to show internal directories.
Click to hide internal directories.