You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-07-15 01:44:22 +02:00
feat: readiness check (#1839)
* feat: readiness check * fix: no need for query param * docs: add a note * chore: move the readyness check to its own endpoint * docs(cr): add godoc Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"time"
|
||||
@ -90,3 +91,8 @@ func (m *Manager) Clear(rw http.ResponseWriter, req *http.Request) error {
|
||||
return m.Store.Clear(req.Context(), key)
|
||||
})
|
||||
}
|
||||
|
||||
// VerifyConnection validates the underlying store is ready and connected
|
||||
func (m *Manager) VerifyConnection(ctx context.Context) error {
|
||||
return m.Store.VerifyConnection(ctx)
|
||||
}
|
||||
|
Reference in New Issue
Block a user