Versions in this module Expand all Collapse all v0 v0.5.5 Aug 27, 2015 Changes in this version + const CACHE_TIME + const COMMIT + const COUNTER + const DEFAULT_STEP + const DERIVE + const FLUSH_DISK_STEP + const GAUGE + const MIN_STEP + const VERSION + var ConfigFile string + var DB *sql.DB + func FormRrdCacheKey(md5 string, dsType string, step int) string + func GetDbConn(connName string) (c *sql.DB, e error) + func InitDB() + func IsRrdFileExist(filename string) bool + func ParseConfig(cfg string) + func RrdFileName(baseDir string, md5 string, dsType string, step int) string + func SplitRrdCacheKey(ckey string) (md5 string, dsType string, step int, err error) + type DBConfig struct + Dsn string + MaxIdle int + type GlobalConfig struct + DB *DBConfig + Debug bool + Http *HttpConfig + Pid string + RRD *RRDConfig + Rpc *RpcConfig + func Config() *GlobalConfig + type HttpConfig struct + Enable bool + Listen string + type RRDConfig struct + Storage string + type RpcConfig struct + Enable bool + Listen string