Conf

package
v0.0.0-...-db1acbc Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfMain

type ConfMain struct {
	ConfGlobal Global `yaml:"Global" json:"Global"`
	ConfDNS    DNS    `yaml:"DNS" json:"DNS"`
	ConfWeb    Web    `yaml:"Web" json:"Web"`
}

func (*ConfMain) LoadConf

func (serverConf *ConfMain) LoadConf(conf string)

读取配置

type DNS

type DNS struct {
	Bind         string `yaml:"bind" json:"bind"`
	ProxyDNS     string `yaml:"ProxyDNS" json:"ProxyDNS"`
	ProxyDNSPort int    `yaml:"ProxyDNSPort" json:"ProxyDNSPort"`
	OnlineStatus bool   `yaml:"OnlineStatus" json:"OnlineStatus"`
}

type Global

type Global struct {
	RedisHost string `yaml:"RedisHost" json:"RedisHost"`
	Auth      string `yaml:"Auth" json:"Auth"`
	DB        int    `yaml:"DB" json:"DB"`
}

type Web

type Web struct {
	Bind         string `yaml:"bind" json:"bind"`
	RegisterKeys string `yaml:"RegisterKeys" json:"RegisterKeys"`
}

Jump to

Keyboard shortcuts

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