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 VERSION + var ConfigFile string + var ExpressionMap = &SafeExpressionMap + var HbsClient *SingleConnRpcClient + var LastEvents = &SafeEventMap + var RedisConnPool *redis.Pool + var StrategyMap = &SafeStrategyMap + func InitHbsClient() + func InitRedisConnPool() + func ParseConfig(cfg string) + func PingRedis(c redis.Conn, t time.Time) error + type AlarmConfig struct + Enabled bool + MinInterval int64 + QueuePattern string + Redis *RedisConfig + type GlobalConfig struct + Alarm *AlarmConfig + Debug bool + DebugHost string + Hbs *HbsConfig + Http *HttpConfig + Remain int + Rpc *RpcConfig + func Config() *GlobalConfig + type HbsConfig struct + Interval int64 + Servers []string + Timeout int64 + type HttpConfig struct + Enabled bool + Listen string + type RedisConfig struct + ConnTimeout int + Dsn string + MaxIdle int + ReadTimeout int + WriteTimeout int + type RpcConfig struct + Enabled bool + Listen string + type SafeEventMap struct + M map[string]*model.Event + func (this *SafeEventMap) Get(key string) (*model.Event, bool) + func (this *SafeEventMap) Set(key string, event *model.Event) + type SafeExpressionMap struct + M map[string][]*model.Expression + func (this *SafeExpressionMap) Get() map[string][]*model.Expression + func (this *SafeExpressionMap) ReInit(m map[string][]*model.Expression) + type SafeStrategyMap struct + M map[string][]model.Strategy + func (this *SafeStrategyMap) Get() map[string][]model.Strategy + func (this *SafeStrategyMap) ReInit(m map[string][]model.Strategy) + type SingleConnRpcClient struct + RpcServers []string + Timeout time.Duration + func (this *SingleConnRpcClient) Call(method string, args interface{}, reply interface{}) error