Documentation
¶
Index ¶
- Variables
- func ConfigInit(config_file string, is_daemon bool)
- func Database() *xorm.Engine
- func DatabaseInit(driver, dsn string, show_sql bool, prefix string)
- func Deamon(pid string, logfile string) (*daemon.Context, *os.Process, error)
- func Keepalive(app string, sec int)
- func KeepaliveInfo() []string
- func RedisInit(addr, password string, db int)
- func RedisPool() *redis.Pool
- func ShowVersion()
- func TablePrefix() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "v0.0.0" Goversion = "" Commit = "" Build = "0000-00-00" Logger *logrus.Logger )
Functions ¶
func ConfigInit ¶
func DatabaseInit ¶
func KeepaliveInfo ¶
func KeepaliveInfo() []string
func ShowVersion ¶
func ShowVersion()
func TablePrefix ¶ added in v0.1.7
func TablePrefix() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.