Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "DRIFTBASE_WEBHOOK"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct {
Redis RedisConfig `mapstructure:"redis"`
}
type Config ¶
type Config struct {
Server ServerConfig `mapstructure:"server"`
Database DatabaseConfig `mapstructure:"database"`
Cache CacheConfig `mapstructure:"cache"`
TaskQueue TaskQueueConfig `mapstructure:"task_queue"`
Storage StorageConfig `mapstructure:"storage"`
}
type DatabaseConfig ¶
type DatabaseConfig struct {
Provider string `mapstructure:"provider"`
Postgres PostgresConfig `mapstructure:"postgres"`
Yugabyte YugabyteConfig `mapstructure:"yugabyte"`
}
type NATSConfig ¶
type PostgresConfig ¶
type PostgresConfig struct {
Host string `mapstructure:"host"`
Port uint `mapstructure:"port"`
User UserConfig `mapstructure:"user"`
Database string `mapstructure:"database"`
Options string `mapstructure:"options"`
MaxOpenConnections uint `mapstructure:"max_open_connections"`
MaxIdleConnections uint `mapstructure:"max_idle_connections"`
}
type RedisConfig ¶
type S3Config ¶
type S3Config struct {
Endpoint string `mapstructure:"endpoint"`
AccessKey string `mapstructure:"access_key"`
SecretKey string `mapstructure:"secret_key"`
Bucket string `mapstructure:"bucket"`
PathPrefix string `mapstructure:"path_prefix"`
Region string `mapstructure:"region"`
ForcePathStyle bool `mapstructure:"force_path_style"`
DisableSSL bool `mapstructure:"disable_ssl"`
}
type ServerConfig ¶
type StorageConfig ¶
type StorageConfig struct {
S3 S3Config `mapstructure:"s3"`
}
type TaskQueueConfig ¶
type TaskQueueConfig struct {
NATS NATSConfig `mapstructure:"nats"`
}
type UserConfig ¶
type YugabyteConfig ¶
type YugabyteConfig struct {
Host string `mapstructure:"host"`
Port uint `mapstructure:"port"`
User UserConfig `mapstructure:"user"`
Database string `mapstructure:"database"`
Options string `mapstructure:"options"`
MaxOpenConnections uint `mapstructure:"max_open_connections"`
MaxIdleConnections uint `mapstructure:"max_idle_connections"`
}
Click to show internal directories.
Click to hide internal directories.