healthcheck

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL