debug

package
v0.0.0-...-33f8601 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ServiceKey  注册到接口平台所用的Key.
	ServiceKey = ""

	//Project 项目名(完整项目名,包括路径)
	Project = ""

	// GitTime git log中记录的提交时间.
	GitTime = ""
	// GitHash git commit hash.
	GitHash = ""
	// GitMessage git log 中记录的提交信息.
	GitMessage = ""
)

Functions

func Print

func Print()

Print 输出当前程序编译信息.

Types

type Debug

type Debug struct {
}

Debug 用来输出pprof信息.

func (*Debug) GET

func (d *Debug) GET(w http.ResponseWriter, r *http.Request)

GET pprof接口.

type Version

type Version struct {
}

Version 版本信息.

func (*Version) GET

func (v *Version) GET(w http.ResponseWriter, r *http.Request)

GET 输出当前应用版本信息.

Jump to

Keyboard shortcuts

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