Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ManagerListenAddress string `env:"MANAGER_LISTEN_ADDRESS,required" validate:"hostname_port"` RunnerListenAddress string `env:"RUNNER_LISTEN_ADDRESS,required" validate:"hostname_port"` ShutdownTimeout time.Duration `env:"SHUTDOWN_TIMEOUT,required" validate:"gte=0"` LoggerType string `env:"LOGGER_TYPE,required" validate:"oneof=dev prod"` MongoConnection string `env:"MONGO_CONNECTION,required"` MongoDatabase string `env:"MONGO_DATABASE,required"` MongoConnectionTimeout time.Duration `env:"MONGO_CONNECTION_TIMEOUT,required" validate:"gte=0"` MongoMigrationTimeout time.Duration `env:"MONGO_MIGRATION_TIMEOUT,required" validate:"gte=0"` RedisAddress string `env:"REDIS_ADDRESS,required" validate:"hostname_port"` TaskTTL time.Duration `env:"TASK_TTL,required" validate:"gte=1s"` MaxTasks int `env:"MAX_TASKS,required" validate:"gt=0"` TaskShutdownTimeout time.Duration `env:"TASK_SHUTDOWN_TIMEOUT,required" validate:"gt=0"` WebhookBaseURL string `env:"WEBHOOK_BASE_URL,required" validate:"url"` BotHandlerShutdownTimeout time.Duration `env:"BOT_HANDLER_SHUTDOWN_TIMEOUT,required" validate:"gte=0"` }
Click to show internal directories.
Click to hide internal directories.