JsonConfig

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Types

type BaseConfig

type BaseConfig struct {
	Port uint32 `json:"port"`
}

type Config

type Config struct {
	Base BaseConfig `json:"base"`
	DB   DBConfig   `json:"db"`
	Log  LogConfig  `json:"log"`
}
var (
	GlobalConfig *Config
)

type DBConfig

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

type LogConfig

type LogConfig struct {
	LogLevel uint32 `json:"log_level"`
	ToSTD    bool   `json:"to_std"`
}

Jump to

Keyboard shortcuts

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