Versions in this module Expand all Collapse all v0 v0.2.1 Aug 15, 2017 v0.2.0 Jun 18, 2017 Changes in this version + const CACHE_DELAY + const CACHE_TIME + const CLEAN_CACHE + const COMMIT + const COUNTER + const DEFAULT_STEP + const DERIVE + const FLUSH_DISK_STEP + const FLUSH_MAX_WAIT + const FLUSH_MIN_COUNT + const GAUGE + const GRAPH_F_ERR + const GRAPH_F_FETCHING + const GRAPH_F_MISS + const GRAPH_F_SENDING + 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 InitLog(level string) (err error) + func IsRrdFileExist(filename string) bool + func IsValidString(str 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 File struct + Body []byte + Filename string + type GlobalConfig struct + CallTimeout int32 + DB *DBConfig + Debug bool + Http *HttpConfig + Migrate struct{ ... } + Pid string + RRD *RRDConfig + Rpc *RpcConfig + func Config() *GlobalConfig + type HttpConfig struct + Enabled bool + Listen string + type RRDConfig struct + Storage string + type RpcConfig struct + Enabled bool + Listen string