Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type Config ¶
type Config struct { Port int16 `yaml:"port" validate:"required,gte=1,lte=65535"` UseLocalCORS bool `yaml:"useLocalCORS" validate:"required"` CleanLogs bool `yaml:"cleanLogs" validate:"required"` Redis RedisConfig `yaml:"redis" validate:"required"` Postgres PostgresConfig `yaml:"postgres" validate:"required"` Auth AuthConfig `yaml:"auth" validate:"required"` }
Config is the root config structure.
func ReadConfig ¶
ReadConfig reads the config file and returns a Config struct.
type PostgresConfig ¶
type PostgresConfig struct {
URL string `vaml:"url"`
}
type RedisConfig ¶
type RedisConfig struct {
URL string `yaml:"url" validate:"required"`
}
RedisConfig is the config for the Redis database.
Click to show internal directories.
Click to hide internal directories.