package
Version:
v1.4.1
Opens a new window with list of versions in this module.
Published: Nov 16, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
handlerfunc
常用公共的handler。
使用示例
r := gin.New()
r.GET("/health", handlerfunc.CheckHealth)
r.GET("/ping", handlerfunc.Ping)
Documentation
¶
CheckHealth check healthy.
@Summary check health
@Description check health
@Tags system
@Accept json
@Produce json
@Success 200 {object} checkHealthResponse{}
@Router /health [get]
Ping ping
@Summary ping
@Description ping
@Tags system
@Accept json
@Produce json
@Router /ping [get]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.