config

package
v0.0.0-...-3e46209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL