Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶
func ConfigureLogging(config *LoggingConfig) (*logrus.Entry, error)
ConfigureLogging will take the logging configuration and also adds a few default parameters
func PostgresConnect ¶
PostgresConnect connects to postgres db
Types ¶
type Config ¶
type Config struct { API struct { Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` } `mapstructure:"api" json:"api"` DB struct { Host string `mapstructure:"host" json:"host"` Port uint `mapstructure:"port" json:"port"` Name string `mapstructure:"name" json:"name"` User string `mapstructure:"user" json:"user"` Password string `mapstructure:"password" json:"password"` } `mapstructure:"db" json:"db"` LogConfig struct { Level string `mapstructure:"level"` File string `mapstructure:"file"` } `mapstructure:"log_config" json:"log_config"` }
Config the application's configuration
type LoggingConfig ¶
LoggingConfig specifies all the parameters needed for logging
Click to show internal directories.
Click to hide internal directories.