{"modulePath":"github.com/foxcpp/maddy","version":"v0.9.8","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package maddy\n\n## Constants\n\n```go\nconst (\n\tSDReady     = \"READY=1\"\n\tSDReloading = \"RELOADING=1\"\n\tSDStopping  = \"STOPPING=1\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\t// ConfigDirectory specifies platform-specific value\n\t// that should be used as a location of default configuration\n\t//\n\t// It should not be changed and is defined as a variable\n\t// only for purposes of modification using -X linker flag.\n\tConfigDirectory = \"/etc/maddy\"\n\n\t// DefaultStateDirectory specifies platform-specific\n\t// default for StateDirectory.\n\t//\n\t// Most code should use StateDirectory instead since\n\t// it will contain the effective location of the state\n\t// directory.\n\t//\n\t// It should not be changed and is defined as a variable\n\t// only for purposes of modification using -X linker flag.\n\tDefaultStateDirectory = \"/var/lib/maddy\"\n\n\t// DefaultRuntimeDirectory specifies platform-specific\n\t// default for RuntimeDirectory.\n\t//\n\t// Most code should use RuntimeDirectory instead since\n\t// it will contain the effective location of the state\n\t// directory.\n\t//\n\t// It should not be changed and is defined as a variable\n\t// only for purposes of modification using -X linker flag.\n\tDefaultRuntimeDirectory = \"/run/maddy\"\n\n\t// DefaultLibexecDirectory specifies platform-specific\n\t// default for LibexecDirectory.\n\t//\n\t// Most code should use LibexecDirectory since it will\n\t// contain the effective location of the libexec\n\t// directory.\n\t//\n\t// It should not be changed and is defined as a variable\n\t// only for purposes of modification using -X linker flag.\n\tDefaultLibexecDirectory = \"/usr/lib/maddy\"\n)\n```\n\n```go\nvar ErrNoNotifySock = errors.New(\"no systemd socket\")\n```\n\n```go\nvar (\n\tVersion = \"go-build\"\n)\n```\n\n## Functions\n\n```go\nfunc BuildInfo() string\n```\n\n```go\nfunc GetVersion() string\n```\n\n```go\nfunc InitDirs(c *container.C) error\n```\n\n```go\nfunc InitExtResolver(c *container.C)\n```\nInitExtResolver initializes the shared DNSSEC resolver when available.\n\n```go\nfunc LogOutputOption(args []string) (log.Output, error)\n```\n\n```go\nfunc ReadConfig(path string) ([]config.Node, error)\n```\n\n```go\nfunc ReadGlobals(c *container.C, cfg []config.Node) (map[string]interface{}, []config.Node, error)\n```\n\n```go\nfunc RegisterModules(c *container.C, globals map[string]interface{}, nodes []config.Node) (err error)\n```\n\n```go\nfunc Run(c *cli.Context) error\n```\nRun is the entry point for all server-running code. It takes care of command line arguments processing, logging initialization, directives setup, configuration reading. After all that, it calls moduleMain to initialize and run modules.\n\n```go\nfunc VerifyConfig(c *cli.Context) error\n```\n\n## Types\n\n```go\ntype SDStatus string\n```\n\n","path":"github.com/foxcpp/maddy","name":"maddy","synopsis":"","isRedistributable":true}
