g

package
v0.0.0-...-e012483 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = "0.0.5"
)

changelog: 0.0.1

Variables

This section is empty.

Functions

func Hostname

func Hostname(hostname string) string

func MysqlPorts

func MysqlPorts() ([]int, error)

func ParseConfig

func ParseConfig(cfg string) error

Types

type DBServer

type DBServer struct {
	Endpoint string `json:"endpoint"`
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Passwd   string `json:"passwd"`
}

func (*DBServer) String

func (this *DBServer) String() string

type GlobalConfig

type GlobalConfig struct {
	LogLevel                string           `json:"log_level"`
	Interval                int              `json:"interval"`
	MaxIdle                 int              `json:"max_idle"`
	ConnectTimeout          int              `json:"connect_timeout"`
	FalconClient            string           `json:"falcon_client"`
	DBServerList            []*DBServer      `json:"db_server_list"`
	Default_Monitor_Account *Monitor_Account `json:"defult_monitor_account"`
}

func Config

func Config() *GlobalConfig

type Monitor_Account

type Monitor_Account struct {
	User   string `json:"user"`
	Passwd string `json:"passwd"`
}

Jump to

Keyboard shortcuts

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