package healthcheck

import "github.com/GoogleCloudPlatform/cloudsql-proxy/cmd/cloud_sql_proxy/internal/healthcheck"

Package healthcheck tests and communicates the health of the Cloud SQL Auth proxy.

Index

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a type used to implement health checks for the proxy.

func NewServer

func NewServer(c *proxy.Client, port string, staticInst []string) (*Server, error)

NewServer initializes a Server and exposes HTTP endpoints used to communicate proxy health.

func (*Server) Close

func (s *Server) Close(ctx context.Context) error

Close gracefully shuts down the HTTP server belonging to the Server.

func (*Server) NotifyStarted

func (s *Server) NotifyStarted()

NotifyStarted tells the Server that the proxy has finished startup.

Source Files

healthcheck.go

Version
v1.37.7 (latest)
Published
Apr 16, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
2 months ago

Tools for package owners.