config

package
v0.0.0-...-9790310 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(configPath string) error

Types

type MySQLConfig

type MySQLConfig struct {
	Host            string `yaml:"host"`
	Port            int    `yaml:"port"`
	Username        string `yaml:"username"`
	Password        string `yaml:"password"`
	CollectInterval int64  `yaml:"collect_interval"`
}

type RedisConfig

type RedisConfig struct {
	ServerAddr      string `yaml:"server_addr"`
	Password        string `yaml:"password"`
	CollectInterval int64  `yaml:"collect_interval"`
}

type StorageServerConfig

type StorageServerConfig struct {
	Log   newlog.LogConfig
	Redis []RedisConfig
	MySQL []MySQLConfig
}
var ServerConfig StorageServerConfig

Jump to

Keyboard shortcuts

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