config

package
v0.0.0-...-4132d1e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG = "/etc/powerful_dns/config.ini"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	//specified in MILLISECONDS
	Diff int64 //if domain was requested in less time than CLuster.Diff, powerful_dns categorilze domain as belonging to organizer domain, otherwise categorize domain as organizer_domain
}

type Config

type Config struct {
	UpperDNS
	LocalDNS
	WebServer
	Redis
	Cluster
}
var Cfg *Config

type LocalDNS

type LocalDNS struct {
	Port     string
	Ipv4only bool
}

type Redis

type Redis struct {
	IP   string
	Port string
	Pass string
	Db   int
}

type UpperDNS

type UpperDNS struct {
	IP   string
	Port string
}

type WebServer

type WebServer struct {
	Port string
	ID   string
	Pass string
}

Jump to

Keyboard shortcuts

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