Documentation ¶ Index ¶ func ReadConfig(fname string) (err error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ReadConfig ¶ func ReadConfig(fname string) (err error) Types ¶ type Config ¶ type Config struct { General struct { Port int ExpirationDays int `toml:"expiration_days"` } Powerdns struct { Api string ApiKey string `toml:"api_key"` Zone string Blacklist []string } Database struct { Dsn string Type string } } var ( Conf Config ) Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.