g

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	VERSION = "1.1.0"
)

change log: 1.0.7: code refactor for open source 1.0.8: bugfix loop init cache 1.0.9: update host table anyway 1.1.0: remove Checksum when query plugins

Variables

View Source
var (
	ConfigFile string
)

Functions

func ParseConfig

func ParseConfig(cfg string)

func SetConfig

func SetConfig(newConfig *GlobalConfig)

Types

type FalconAgentView

type FalconAgentView struct {
	Heartbeat *HeartbeatView `json:"heartbeat"`
}

type GlobalConfig

type GlobalConfig struct {
	Debug     bool            `json:"debug"`
	Hosts     string          `json:"hosts"`
	MaxIdle   int             `json:"maxIdle"`
	Listen    string          `json:"listen"`
	Trustable []string        `json:"trustable"`
	Http      *HttpConfig     `json:"http"`
	MysqlApi  *MysqlApiConfig `json:"mysql_api"`
}

func Config

func Config() *GlobalConfig

type HealthView

type HealthView struct {
	// Health check value
	HealthCheck int                `json:"health_check"`
	MysqlApi    *apiModel.MysqlApi `json:"mysql_api"`
	Http        *HttpConfig        `json:"http"`
	Rpc         *RpcView           `json:"rpc"`
	FalconAgent *FalconAgentView   `json:"falcon_agent"`
}

Response struct of /api/v1/health

type HeartbeatView

type HeartbeatView struct {
	CurrentSize         int   `json:"current_size"`
	CumulativeDropped   int64 `json:"cumulative_dropped"`
	CumulativeReceived  int64 `json:"cumulative_received"`
	CumulativeProcessed int64 `json:"cumulative_processed"`
}

Statistical info of heartbeat service

type HttpConfig

type HttpConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`
}

type MysqlApiConfig

type MysqlApiConfig struct {
	Host     string `json:"host"`
	Resource string `json:"resource"`
}

type RpcView

type RpcView struct {
	Listen string `json:"listen"`
}

Jump to

Keyboard shortcuts

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