const PathHealth …
const PathProxyHealth …
const HealthStatusSuccess …
const HealthStatusError …
const checkTypeLivez …
const checkTypeReadyz …
const checkTypeHealth …
type ServerHealth …
type serverHealthV2V3 …
func HandleHealthForV2(lg *zap.Logger, mux *http.ServeMux, srv etcdserver.ServerV2) { … }
func HandleHealth(lg *zap.Logger, mux *http.ServeMux, srv ServerHealth) { … }
func NewHealthHandler(lg *zap.Logger, hfunc func(ctx context.Context, excludedAlarms StringSet, Serializable bool) Health) http.HandlerFunc { … }
var healthSuccess …
var healthFailed …
var healthCheckGauge …
var healthCheckCounter …
func init() { … }
type Health …
type HealthStatus …
func getQuerySet(r *http.Request, query string) StringSet { … }
func getSerializableFlag(r *http.Request) bool { … }
func checkAlarms(lg *zap.Logger, srv serverHealthV2V3, excludedAlarms StringSet) Health { … }
func checkLeader(lg *zap.Logger, srv serverHealthV2V3, serializable bool) Health { … }
func checkV2API(ctx context.Context, lg *zap.Logger, srv etcdserver.ServerV2) Health { … }
func checkAPI(ctx context.Context, lg *zap.Logger, srv ServerHealth, serializable bool) Health { … }
type HealthCheck …
type CheckRegistry …
func installLivezEndpoints(lg *zap.Logger, mux *http.ServeMux, server ServerHealth) { … }
func installReadyzEndpoints(lg *zap.Logger, mux *http.ServeMux, server ServerHealth) { … }
func (reg *CheckRegistry) Register(name string, check HealthCheck) { … }
func (reg *CheckRegistry) RootPath() string { … }
func (reg *CheckRegistry) InstallHttpEndpoints(lg *zap.Logger, mux *http.ServeMux) { … }
func (reg *CheckRegistry) runHealthChecks(ctx context.Context, checkNames ...string) HealthStatus { … }
func (reg *CheckRegistry) installRootHttpEndpoint(lg *zap.Logger, mux *http.ServeMux, checks ...string) { … }
func newHealthHandler(path string, lg *zap.Logger, hfunc func(*http.Request) HealthStatus) http.HandlerFunc { … }
func filterCheckList(lg *zap.Logger, checks StringSet, excluded StringSet) []string { … }
func formatQuoted(names ...string) string { … }
type StringSet …
func (s StringSet) List() []string { … }
func listToStringSet(list []string) StringSet { … }
func recordMetrics(checkType, name string, status string) { … }
func activeAlarmCheck(srv ServerHealth, at pb.AlarmType) func(context.Context) error { … }
func readCheck(srv ServerHealth, serializable bool) func(ctx context.Context) error { … }