config

package
v0.0.0-...-9b45bd6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	Master MysqlConfig `yaml:"master"`
	Slave  MysqlConfig `yaml:"slave"`
}

type EtcdConfig

type EtcdConfig struct {
	IP   string `yaml:"ip"`
	Port int32  `yaml:"port"`
}

type GlobalConfig

type GlobalConfig struct {
	Server       ServerConfig     `yaml:"server"`
	Monitor      PrometheusConfig `yaml:"prometheus"`
	Db           DbConfig         `yaml:"mysql"`
	NamingServer EtcdConfig       `yaml:"etcd"`
}
var (
	Config GlobalConfig
)

type MysqlConfig

type MysqlConfig struct {
	IP     string `yaml:"ip"`
	Port   int32  `yaml:"port"`
	User   string `yaml:"user"`
	Passwd string `yaml:"passwd"`
}

type PrometheusConfig

type PrometheusConfig struct {
	IP   string `yaml:"ip"`
	Port int32  `yaml:"port"`
}

type ServerConfig

type ServerConfig struct {
	ServerName string `yaml:"server_name"`
	Port       int32  `yaml:"port"`
	Log        string `yaml:"log"`
}

Jump to

Keyboard shortcuts

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