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
Types ¶
type Config ¶
type Config struct { Port int `mapstructure:"port" json:"port"` JWTSecret string `mapstructure:"jwt_secret" json:"jwt_secret"` AdminGroupName string `mapstructure:"admin_group_name" json:"admin_group_name"` StripeKey string `mapstructure:"stripe_key" json:"stripe_key"` LogConfig LoggingConfig `mapstructure:"log" json:"log"` DBConfig DBConfig `mapstructure:"db" json:"db"` }
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.