parent
250776bf27
commit
52dacbd4d2
|
|
@ -0,0 +1,23 @@
|
|||
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"))
|
||||
}
|
||||
Loading…
Reference in New Issue