...

Package healthcheck

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

Overview ▾

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

type Server

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

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

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.