tools

package
v0.0.0-...-08a50c5 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

type Err int
const (
	OK              Err = 0
	PostDataInvalid Err = 1001
	ConnectOJError  Err = 2001
)

type GlobalConfig

type GlobalConfig struct {
	WebConfig   Web   `yaml:"web"`
	MysqlConfig Mysql `yaml:"mysql"`
}

func GetConfig

func GetConfig() *GlobalConfig

type Mysql

type Mysql struct {
	Address  string `yaml:"address"`
	Port     int    `yaml:"port"`
	DB       string `yaml:"database"`
	User     string `yaml:"username"`
	Password string `yaml:"password"`
}

type Web

type Web struct {
	Address string `yaml:"address"`
	Port    int    `yaml:"port"`
}

Jump to

Keyboard shortcuts

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