config

package
Version: v0.0.0-...-0f8884b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cfg *tomlConfig
)
View Source
var ConfigServer *tomlConfig

Functions

func Config

func Config() *tomlConfig

func ReloadConfig

func ReloadConfig()

reload配置文件

Types

type Dts

type Dts struct {
	Name     string `json:"name"`
	Broker   string `json:"broker"`
	User     string `json:"user"`
	Password string `json:"password"`
	GroupId  string `json:"groupid"`
	Topic    string `json:"topic"`
}

type Etcd

type Etcd struct {
	Endpoints []string `json:"endpoints"`
	Username  string   `json:"username"`
	Password  string   `json:"password"`
}

type Http

type Http struct {
	Port int `json:"port"`
}

type Log

type Log struct {
	Level       string `json:"level"`
	LogPath     string `json:"logPath"`
	RotateDaily bool   `json:"rotateDaily"`
	Rotate      bool   `json:"rotate"`
}

日志配置文件

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL