Movatterモバイル変換


[0]ホーム

URL:


health

package
v1.92.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:8Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package health contains shared types and underlying methods for servinga `/healthz` endpoint for containerboot and k8s-proxy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeHealthz

type Healthz struct {sync.Mutex// contains filtered or unexported fields}

Healthz is a simple health check server, if enabled it returns 200 OK ifthis tailscale node currently has at least one tailnet IP address elsereturns 503.

funcRegisterHealthHandlers

func RegisterHealthHandlers(mux *http.ServeMux, podIPv4string, loggerlogger.Logf) *Healthz

RegisterHealthHandlers registers a simple health handler at /healthz.A containerized tailscale instance is considered healthy ifit has at least one tailnet IP address.

func (*Healthz)MonitorHealth

func (h *Healthz) MonitorHealth(ctxcontext.Context, lc *local.Client)error

func (*Healthz)ServeHTTP

func (h *Healthz) ServeHTTP(whttp.ResponseWriter, r *http.Request)

func (*Healthz)Update

func (h *Healthz) Update(healthybool)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp