healthz

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormDBCheck

func NewGormDBCheck(db *gorm.DB) checks.Check

func NewLivezHandler

func NewLivezHandler() gin.HandlerFunc

NewLivezHandler creates a new liveness check handler that can be used to check if the application is running.

func NewReadyzHandler

func NewReadyzHandler(db *gorm.DB) gin.HandlerFunc

NewReadyzHandler creates a new readiness check handler that can be used to check if the application is ready to serve traffic.

func Register

func Register(r *gin.RouterGroup, db *gorm.DB)

Register registers the livez and readyz handlers to the specified router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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