healthcheckhandler

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Version string
}

Handler represents http handler configuration and must satisfy HealthCheckHandler interface.

func New

func New(options ...Option) (*Handler, error)

New instantiates new handler instance.

func (Handler) Handle

func (h Handler) Handle(ctx *fasthttp.RequestCtx)

Handle is a fasthttp handler function.

type HealthCheckHandler

type HealthCheckHandler interface {
	httphandler.FastHTTPHandler
}

HealthCheckHandler defines http handler behaviours.

type Option

type Option func(*Handler) error

Option represents option function type.

func WithVersion

func WithVersion(s string) Option

WithVersion sets version information.

Jump to

Keyboard shortcuts

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