Documentation ¶
Index ¶
Constants ¶
View Source
const (
COMMIT = "b4d6264"
)
View Source
const (
VERSION = "0.0.10"
)
Variables ¶
View Source
var (
ConfigFile string
)
Functions ¶
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type AgentConfig ¶
type AgentConfig struct { Enable bool `json:"enable"` Dsn string `json:"dsn"` MaxIdle int32 `json:"maxIdle"` Plugin *PluginConfig `json:"plugin"` Cleaner *CleanerConfig `json:"cleaner"` }
type CleanerConfig ¶
type CleanerConfig struct {
Interval int32 `json:"interval"`
}
type CollectorConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `json:"debug"` Http *HttpConfig `json:"http"` Index *IndexConfig `json:"index"` Collector *CollectorConfig `json:"collector"` Agent *AgentConfig `json:"agent"` }
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type IndexConfig ¶
Click to show internal directories.
Click to hide internal directories.