core

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package core 内部标志量

Index

Constants

View Source
const (
	HotSwitchSigint = 30 // 热调试开关
)

Variables

View Source
var (
	BaseRoutesDisabled       = false            // 禁用基础路由
	SwaggerDisabled          = false            // 禁用文档自动生成
	RequestValidateDisabled  = true             // 禁用请求体自动验证
	ResponseValidateDisabled = false            // 禁用返回体自动验证
	MultipleProcessEnabled   = true             // 启用多进程
	ShutdownWithTimeout      = 20 * time.Second // 关机前的最大等待时间
	DumpPIDEnabled           = false            // 是否记录PID
)

Functions

func GetMode

func GetMode(short ...bool) string

func IsDebug

func IsDebug() bool

func SetMode

func SetMode(md bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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