initgo

package
v0.0.0-...-23ec637 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false
View Source
var LogPath = "initVirtual.log"
View Source
var PidPath = "/var/run/"
View Source
var ProgramName = "golang.pid"
View Source
var ProgramStatusNum int64
View Source
var SysCall func()

Functions

func AddProgram

func AddProgram(Pg Program)

func GetPid

func GetPid() (pid string, err error)

func InitProgram

func InitProgram(Pgs ...Program)

func IsRun

func IsRun() bool

* 进程是否运行

func RecoverLog

func RecoverLog()

捕获错误 * defer initgo.RecoverLog

func Run

func Run(Pgs ...Program)

运行

Types

type Program

type Program func()

Jump to

Keyboard shortcuts

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