api

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(logger *log.Logger, p StatusProvider, address string) (func(ctx context.Context), error)

StartServer starts an http server that exposes a health check endpoint. A callback is returned that can be used to gracefully shutdown the server.

Types

type StatusProvider

type StatusProvider interface {
	Status() (pipeline.Status, error)
}

StatusProvider is a subset of the Pipeline interface required by the health handler.

Jump to

Keyboard shortcuts

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