harmonize jwtProfile and existing interfaces / functions
This commit is contained in:
parent
87b30dcd66
commit
a56a4a018a
14 changed files with 259 additions and 632 deletions
|
@ -10,11 +10,11 @@ import (
|
|||
|
||||
type ProbesFn func(context.Context) error
|
||||
|
||||
func Healthz(w http.ResponseWriter, r *http.Request) {
|
||||
func healthzHandler(w http.ResponseWriter, r *http.Request) {
|
||||
ok(w)
|
||||
}
|
||||
|
||||
func Ready(probes []ProbesFn) func(w http.ResponseWriter, r *http.Request) {
|
||||
func readyHandler(probes []ProbesFn) func(w http.ResponseWriter, r *http.Request) {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
Readiness(w, r, probes...)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue