Documentation ¶
Index ¶
- Constants
- Variables
- func InitLog(level string) (err error)
- func InitRedisConnPool()
- func Link(event *cmodel.Event) string
- func ParseConfig(cfg string)
- func PingRedis(c redis.Conn, t time.Time) error
- type AlarmChannelConfig
- type ApiConfig
- type FalconPortalConfig
- type GlobalConfig
- type HousekeeperConfig
- type HttpConfig
- type RedisConfig
- type WorkerConfig
Constants ¶
View Source
const (
VERSION = "0.2.0"
)
Variables ¶
View Source
var (
ConfigFile string
)
View Source
var RedisConnPool *redis.Pool
Functions ¶
func InitRedisConnPool ¶
func InitRedisConnPool()
func ParseConfig ¶
func ParseConfig(cfg string)
Types ¶
type AlarmChannelConfig ¶ added in v0.2.2
type FalconPortalConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { LogLevel string `json:"log_level"` FalconPortal *FalconPortalConfig `json:"falcon_portal"` Http *HttpConfig `json:"http"` Redis *RedisConfig `json:"redis"` Api *ApiConfig `json:"api"` AlarmChannel *AlarmChannelConfig `json:"alarm_channel"` Worker *WorkerConfig `json:"worker"` Housekeeper *HousekeeperConfig `json:"Housekeeper"` }
func Config ¶
func Config() *GlobalConfig
type HousekeeperConfig ¶
type HttpConfig ¶
type RedisConfig ¶
type WorkerConfig ¶
Click to show internal directories.
Click to hide internal directories.