app

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

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 ConfigInit(config_file string, is_daemon bool)

func Database

func Database() *xorm.Engine

func DatabaseInit

func DatabaseInit(driver, dsn string, show_sql bool, prefix string)

func Deamon

func Deamon(pid string, logfile string) (*daemon.Context, *os.Process, error)

func Keepalive

func Keepalive(app string, sec int)

func KeepaliveInfo

func KeepaliveInfo() []string

func RedisInit

func RedisInit(addr, password string, db int)

func RedisPool

func RedisPool() *redis.Pool

func ShowVersion

func ShowVersion()

func TablePrefix added in v0.1.7

func TablePrefix() string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL