health

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName string = "http-health-endpoints"
)

Variables

View Source
var ErrUnknownComponent = fmt.Errorf("component is not the %s component", ComponentName)

Functions

This section is empty.

Types

type Component

type Component struct {
	components.Base
	// contains filtered or unexported fields
}

func New

func New(components ...string) *Component

func (*Component) Configure

func (c *Component) Configure(opts ...components.Option) error

func (*Component) HealthHandler

func (c *Component) HealthHandler(ctx *gin.Context)

func (*Component) Shutdown

func (c *Component) Shutdown() error

func (*Component) Start

func (c *Component) Start() error

type ComponentHealthCheck

type ComponentHealthCheck interface {
	Health(context.Context) error
}

Jump to

Keyboard shortcuts

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