JsonConfig

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

配置文件初始化

Types

type Config

type Config struct {
	Unique UniqueConfig `json:"unique"`
	DB     DBConfig     `json:"db"`
}

所有配置

var (
	GlobalConfig *Config
)

type DBConfig

type DBConfig struct {
	Host string `json:"host"`
	Name string `json:"name"`
}

数据库配置

type UniqueConfig

type UniqueConfig struct {
	//Host string `json:"host"`
	Port uint32 `json:"port"`
}

唯一检查服务器配置

Jump to

Keyboard shortcuts

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