toplevel

package
v0.0.0-...-ed4fdcb Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_CONF_FILE = fmt.Sprintf("./%s.conf", SERVERNAME)
View Source
var G_ORM orm.Ormer
View Source
var SERVERNAME string = "go-crontab"

Functions

func GetConfig

func GetConfig(config_file string, config *Configure) error

func InitBeegoOrm

func InitBeegoOrm()

func InitCPUProfile

func InitCPUProfile() error

func InitConfig

func InitConfig()

func InitGlobal

func InitGlobal()

func StartHandleSignal

func StartHandleSignal()

Types

type Configure

type Configure struct {
	MallDb           SqlCon
	RPCListen        string
	LogDir           string
	LogFile          string
	LogRetentionTime int64 //日志保留时间(秒)
}
var G_Config Configure

type SignalHandler

type SignalHandler func(sig os.Signal, arg interface{})

type SignalSet

type SignalSet struct {
	// contains filtered or unexported fields
}

func NewSignalSet

func NewSignalSet() *SignalSet

func (*SignalSet) Handle

func (signal_set *SignalSet) Handle(sig os.Signal, arg interface{})

func (*SignalSet) Register

func (signal_set *SignalSet) Register(sig os.Signal, handler SignalHandler)

type SqlCon

type SqlCon struct {
	MysqlConn            string
	MysqlConnectPoolSize int
}

Jump to

Keyboard shortcuts

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