change some interfaces

This commit is contained in:
Livio Amstutz 2020-09-09 16:00:19 +02:00
parent bfbd4adb1c
commit eaf47fde8e
10 changed files with 130 additions and 20 deletions

View file

@ -279,12 +279,11 @@ func (p *DefaultOP) ClientJWTVerifier() rp.Verifier {
return p.verifier
}
func (p *DefaultOP) HandleReady(w http.ResponseWriter, r *http.Request) {
probes := []ProbesFn{
func (p *DefaultOP) Probes() []ProbesFn {
return []ProbesFn{
ReadySigner(p.Signer()),
ReadyStorage(p.Storage()),
}
Readiness(w, r, probes...)
}
func (p *DefaultOP) HandleKeys(w http.ResponseWriter, r *http.Request) {