24 lines
497 B
Go
24 lines
497 B
Go
package healthz
|
|
|
|
import "net/http"
|
|
|
|
// HealthyHandler Healthz 接口
|
|
//
|
|
// @Summary Healthz 接口
|
|
// @Tags Healthz
|
|
// @Success 200 {string} string
|
|
// @Router /healthz [get]
|
|
func HealthzHandler(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("OK"))
|
|
}
|
|
|
|
// HealthyHandler 健康检查
|
|
func HealthyHandler(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("OK"))
|
|
}
|
|
|
|
// ReadyHandler 健康检查
|
|
func ReadyHandler(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("OK"))
|
|
}
|