Documentation ¶
Index ¶
Constants ¶
View Source
const (
VERSION = "0.0.5"
)
Variables ¶
View Source
var ( Logger *log.Logger Ipaddr string )
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type ClusterNode ¶
type ClusterNode struct {
Addrs []string `json:"addrs"`
}
CLUSTER NODE
func NewClusterNode ¶
func NewClusterNode(addrs []string) *ClusterNode
type ConsumerConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` DebugTrend bool `json:"debugtrend"` DebugTraffer bool `json:"debugtraffer"` LogMaxAge int `json:"logmaxage"` LogRotateAge int `json:"logrotateage"` LogFile string `json:"logfile"` Http *HttpConfig `json:"http"` Consumer *ConsumerConfig `json:"consumer"` Trend *TrendConfig `json:"trend"` Transfer *TransferConfig `json:"transfer"` PercentCheck map[string]bool `json:"percent_check"` IgnoreHost map[string]bool `json:"ignore_host"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type TransferConfig ¶
type TrendConfig ¶
Click to show internal directories.
Click to hide internal directories.