Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { SiteURL string `mapstructure:"site_url" json:"site_url"` JWT struct { Secret string `mapstructure:"secret" json:"secret"` AdminGroupName string `mapstructure:"admin_group_name" json:"admin_group_name"` } `mapstructure:"jwt" json:"jwt"` DB struct { Driver string `mapstructure:"driver" json:"driver"` ConnURL string `mapstructure:"url" json:"url"` Namespace string `mapstructure:"namespace" json:"namespace"` Automigrate bool `mapstructure:"automigrate" json:"automigrate"` } `mapstructure:"db" json:"db"` API struct { Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` } `mapstructure:"api" json:"api"` Mailer struct { Host string `mapstructure:"host" json:"host"` Port int `mapstructure:"port" json:"port"` User string `mapstructure:"user" json:"user"` Pass string `mapstructure:"pass" json:"pass"` TemplateFolder string `mapstructure:"template_folder" json:"template_folder"` AdminEmail string `mapstructure:"admin_email" json:"admin_email"` MailSubjects struct { OrderConfirmationMail string `mapstructure:"confirmation" json:"confirmation"` } `mapstructure:"mail_subjects" json:"mail_subjects"` } `mapstructure:"mailer" json:"mailer"` Payment struct { Stripe struct { SecretKey string `mapstructure:"secret_key" json:"secret_key"` } `mapstructure:"stripe" json:"stripe"` Paypal struct { } `mapstructure:"paypal" json:"paypal"` } `mapstructure:"payment" json:"payment"` }
Configuration holds all the confiruation for authlify
func Load ¶
func Load(configFile string) (*Configuration, error)
Load will construct the config from the file `config.json`
Click to show internal directories.
Click to hide internal directories.