parse

package
v0.0.0-...-497d345 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// conf strut
	C iris.Configuration

	// 解析app.yml中的Other项
	O Other
	// app.conf配置项key定义
	Port string = "Port"
)

Functions

func AppOtherParse

func AppOtherParse()

func DBSettingParse

func DBSettingParse()

Types

type DB

type DB struct {
	Master DBConfigInfo
	Slave  DBConfigInfo
}
var (
	DBConfig DB
)

type DBConfigInfo

type DBConfigInfo struct {
	Dialect      string `yaml:"dialect"`
	User         string `yaml:"user"`
	Password     string `yaml:"password"`
	Host         string `yaml:"host"`
	Port         int    `yaml:"port"`
	Database     string `yaml:"database"`
	Charset      string `yaml:"charset"`
	ShowSql      bool   `yaml:"showSql"`
	LogLevel     string `yaml:"logLevel"`
	MaxIdleConns int    `yaml:"maxIdleConns"`
	MaxOpenConns int    `yaml:"maxOpenConns"`
}

type Other

type Other struct {
	Port       string
	IgnoreURLs []string
	JWTTimeout int64
	LogLevel   string
	Secret     string
	UploadFile string
}

Jump to

Keyboard shortcuts

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