config

package
v0.0.0-...-e9744b6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Port 程序运行端口
	Port     int = 9000
	FlagPort     = cli.IntFlag{
		Name:        "port",
		Usage:       fmt.Sprintf("--port %d", Port),
		EnvVar:      "FFS_PORT",
		FilePath:    "",
		Required:    false,
		Hidden:      false,
		Value:       Port,
		Destination: &Port,
	}

	// Multicore 启用多核
	Multicore     bool = false
	FlagMulticore      = cli.BoolFlag{
		Name:        "multicore",
		Usage:       "--multicore",
		EnvVar:      "FFS_MULTICORE",
		FilePath:    "",
		Required:    false,
		Hidden:      false,
		Destination: &Multicore,
	}

	// Debug 调试模式
	Debug     bool = false
	FlagDebug      = cli.BoolTFlag{
		Name:        "debug",
		Usage:       "启用 debug 模式",
		EnvVar:      "FFS_DEBUG",
		FilePath:    "",
		Required:    false,
		Hidden:      false,
		Destination: &Debug,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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