common

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComdPids   = iota // report pids of leader and worker
	ComdLeader        // report leader info
	ComdWorker        // report worker info
	ComdReload        // reload worker config
)
View Source
const (
	CodeStop  = 10
	CodeCrash = 11
)
View Source
const (
	ComdStop      = iota // exit server immediately
	ComdQuit             // exit server gracefully
	ComdRecmd            // reopen cmdui interface
	ComdReweb            // reopen webui interface
	ComdRework           // restart worker process
	ComdCPU              // profile cpu
	ComdHeap             // profile heap
	ComdThread           // profile thread
	ComdGoroutine        // profile goroutine
	ComdBlock            // profile block
	ComdGC               // run runtime.GC()
)

Variables

View Source
var (
	DebugLevel int
	TargetAddr string
	CmdUIAddr  string
	WebUIAddr  string
	MyroxAddr  string
	ConfigFile string
	SingleMode bool
	DaemonMode bool
	BaseDir    string
	LogsDir    string
	TempDir    string
	VarsDir    string
	OutFile    string
	ErrFile    string
)
View Source
var (
	Program string                                             // gorox, myrox, ...
	ExeArgs = append([]string{system.ExePath}, os.Args[1:]...) // /path/to/exe arg1 arg2 ...
)

Functions

func Crash

func Crash(s string)

func GetConfig

func GetConfig() (configBase string, configFile string)

func Stop

func Stop()

Types

This section is empty.

Jump to

Keyboard shortcuts

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