config

package
v0.0.0-...-bfeed6b Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2015 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFilename = "./config.json"

Variables

This section is empty.

Functions

func AddRecord

func AddRecord(name, addr string)

func GetClientCrt

func GetClientCrt() string

func GetCrt

func GetCrt() string

func GetDnsListen

func GetDnsListen() string

func GetHttpsListen

func GetHttpsListen() string

func GetKey

func GetKey() string

func GetRecord

func GetRecord(name string) []string

func GetTtl

func GetTtl() int

func GetUpstream

func GetUpstream() string

func RemoveRecord

func RemoveRecord(name string)

func SetTtl

func SetTtl(ttl int)

func SetUpstream

func SetUpstream(upstream string)

Types

type Config

type Config struct {
	Crt         string              `json:"crt"`
	Key         string              `json:"key"`
	ClientCrt   string              `json:"clientCrt"`
	HttpsListen string              `json:"httpsListen"`
	DnsListen   string              `json:"dnsListen"`
	Upstream    string              `json:"upstream"`
	Ttl         int                 `json:"ttl"`
	Record      map[string][]string `json:"record"`
}

func GetConfig

func GetConfig() Config

Jump to

Keyboard shortcuts

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