config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppEnv = &appEnvConfig{
	Env: "DEV",
}
View Source
var AppSign = &appSignConfig{
	Sign: make(map[string]string),
}
View Source
var BootConfig = &BoostrapConfig{HttpPort: "8080"}
View Source
var PriorityNetwork = &priorityNetwork{
	Networks: make([]string, 0),
}

Functions

func GetAppName added in v0.1.5

func GetAppName() string

func GetLogCfg

func GetLogCfg() logger

func GetNacosCfg

func GetNacosCfg() nacos

func ReadConfig

func ReadConfig(configStr string, out interface{})

Types

type BoostrapConfig

type BoostrapConfig struct {
	HttpPort string
	Logger   logger `yaml:"logger"`
	Nacos    nacos  `yaml:"nacos"`
}

Jump to

Keyboard shortcuts

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