Documentation
¶
Index ¶
Constants ¶
View Source
const ( FALCON_SENDER_VERSION = "0.0.0" DOMEOS_VERSION = "0.2" )
Variables ¶
View Source
var (
ConfigFile string
)
View Source
var DB *sql.DB
Functions ¶
func InitDatabase ¶
func InitDatabase()
func ParseConfig ¶
func ParseConfig(cfg string)
func UpdateApiConfig ¶
func UpdateApiConfig()
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Debug bool `json:"debug"`
Database string `json:"database"`
MaxIdle int `json:"maxIdle"`
Http *HttpConfig `json:"http"`
Redis *RedisConfig `json:"redis"`
Queue *QueueConfig `json:"queue"`
Worker *WorkerConfig `json:"worker"`
Api *ApiConfig `json:"api"`
}
func Config ¶
func Config() *GlobalConfig
type HttpConfig ¶
type QueueConfig ¶
type RedisConfig ¶
type WorkerConfig ¶
Click to show internal directories.
Click to hide internal directories.