config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 4 Imported by: 0

README

  1. 初始化默认配置
  2. 读取配置文件覆盖默认配置

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Service string `json:"service"`
	RunMode string `json:"run_mode"`

	ServerConfig *server.Config `json:"server"`
	LoggerConfig *logger.Config `json:"logger"`
}

func NewConfig

func NewConfig() *Config

func NewEmptyConfig

func NewEmptyConfig() *Config

func ParseConfig

func ParseConfig(path string) *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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