Config

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFile

func LoadConfigFile() []byte

读取配置文件

Types

type ServerConfig

type ServerConfig struct {
	Port  int32
	Name  string
	Mysql string
	Redis string
	Etcd  string
}

type SysConfig

type SysConfig struct {
	Server *ServerConfig
}

系统配置

func InitConfig

func InitConfig() *SysConfig

func NewSysConfig

func NewSysConfig() *SysConfig

func (*SysConfig) Name

func (this *SysConfig) Name() string

Jump to

Keyboard shortcuts

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