Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database *DatabaseConfig `yaml:"database"` Api *ApiConfig `yaml:"api"` }
Config represents the top-level structure of the configuration file.
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `yaml:"host"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` SSLMode string `yaml:"ssl_mode"` }
DatabaseConfig represents the database configuration section of the configuration file.
func (*DatabaseConfig) ConnString ¶
func (dc *DatabaseConfig) ConnString() string
ConnString generates a string to pass to sql.Open to connect to the PostgreSQL database.
Click to show internal directories.
Click to hide internal directories.