probes

package
v1.18.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartLivenessProbeServer

func StartLivenessProbeServer(ctx context.Context)

StartLivenessProbeServer starts a probe server listening on 8765 for requests to /healthz and responds with HTTP 200 with body OK\n

This is a convenience wrapper around StartProbeServer which can be customized with params.

func StartServer

func StartServer(ctx context.Context, params ServerParams)

StartServer accepts a port and opens a simple http server which will respond to requests at the configured port and path

Types

type ServerParams

type ServerParams struct {
	Port         int
	Path         string
	ResponseCode int
	ResponseBody string
}

func NewServerParams

func NewServerParams() ServerParams

NewServerParams creates gloo's default probe server parameters

Jump to

Keyboard shortcuts

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