config

package
v0.0.0-...-1569ab3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPath = "../../configs/config.yml"

DefaultPath 默认配置路径

Functions

This section is empty.

Types

type Config

type Config struct {
	Port       string                `yaml:"port"`
	Log        logger.LogConfig      `yaml:"log"`
	Mysql      mysql.MysqlConfig     `yaml:"mysql"`
	Kafka      kafka.KafkaConfig     `yaml:"kafka"`
	Alert      alertcore.AlertConfig `yaml:"alert"`
	Email      email.EmailConfig     `yaml:"email"`
	HttpClient httpclient.HttpConfig `yaml:"httpclient"`
	Aurora     internal.AuroraConfig `yaml:"aurora"`
}

Config 配置文件

var Conf *Config

Conf 配置文件

func GetAllConfig

func GetAllConfig() (*Config, error)

GetAllConfig Get all configurations

func NewConfig

func NewConfig(path string) (*Config, error)

NewConfig

Jump to

Keyboard shortcuts

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