g

package
v0.0.0-...-7437625 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const (
	VERSION = "1.1.0.sdpv005"
)

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 1.1.0.sdpv001 add api to get endpoint by ip 1.1.0.sdpv002 add function to get endpoint by both public ip and private ip 1.1.0.sdpv003 add function to get hosts information with <ip,endpoint> pair 1.1.0.sdpv004 modify import from open-falcon to ZeaLoVe ,fix run_time of metrics 1.1.0.sdpv005 add /hosts/id get host_id by name

Variables

View Source
var (
	ConfigFile string
)

Functions

func ParseConfig

func ParseConfig(cfg string)

Types

type GlobalConfig

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

	Nat []NAT `json:"nat"`
}

func Config

func Config() *GlobalConfig

type HttpConfig

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

type NAT

type NAT struct {
	PublicIP  string `json:"publicip"`
	PrivateIP string `json:"privateip"`
}

add exchange map

Jump to

Keyboard shortcuts

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