tconf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 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 MysqlConf

type MysqlConf struct {
	User     string
	Password string
	Host     string
	Port     uint16
	DbName   string
}

MysqlConf Mysql配置

type ServerConf

type ServerConf struct {
	Domain string
	Port   uint16
}

ServerConf 服务器相关配置

type TConf

type TConf struct {
	Server ServerConf
	Mysql  MysqlConf
	Site   []string
	// contains filtered or unexported fields
}

TConf 服务器的全局配置

func GlobalConf

func GlobalConf() *TConf

GlobalConf 获取全局配置

func (*TConf) IsSiteRegistered

func (cfg *TConf) IsSiteRegistered(site string) bool

Jump to

Keyboard shortcuts

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