config

package
v0.0.0-...-2403d1f Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Data cfgData

Functions

func CurDir

func CurDir() string

CurDir current dir

Types

type CacheSettings

type CacheSettings struct {
	Backend  string `toml:"backend"`
	Expire   int    `toml:"expire"`
	Maxcount int    `toml:"maxcount"`
}

type DownloadSetting

type DownloadSetting struct {
	Enable bool
	Dest   string `toml:"dest"`
}

type HostsSettings

type HostsSettings struct {
	Enable    bool
	HostsFile string `toml:"host-file"`
	TTL       uint32 `toml:"ttl"`
}

type RedisSettings

type RedisSettings struct {
	Host   string `toml:"host"`
	Passwd string `toml:"passwd"`
}

type ResolvSettings

type ResolvSettings struct {
	Enable     bool   `toml:"enable"`
	ResolvFile string `toml:"resolv-file"`
	Timeout    int
	Interval   int
}

type ServerSetting

type ServerSetting struct {
	Debug     bool   `toml:"debug"`
	Addr      string `toml:"addr"`
	Port      int    `toml:"port"`
	EnableWeb bool   `toml:"enableweb"`
	EnableDNS bool   `toml:"enabledns"`
	Master    bool   `toml:"master"`
}

type SessionSetting

type SessionSetting struct {
	Backend string `toml:"backend"`
	Maxage  int    `toml:"maxage"`
}

type SlaveSetting

type SlaveSetting struct {
	MasterHost string `toml:"master_host"`
	Accesskey  string `toml:"accesskey"`
	SecretKey  string `toml:"secretKey"`
	UpdateTime int64  `toml:"update_time"`
}

type SqliteSetting

type SqliteSetting struct {
	Path string `toml:"path"`
}

type WebSetting

type WebSetting struct {
	Port            int    `toml:"port"`
	Admin           string `toml:"admin"`
	Passwd          string `toml:"passwd"`
	AssetsImageHost string `toml:"assets_image_host"`
}

Jump to

Keyboard shortcuts

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