healthz

package
v0.0.0-...-ee57881 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DependencySet = wire.NewSet(
	NewHandlerLogger,
	wire.Struct(new(Handler), "*"),
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	GlobalDatabase *globaldb.Handle
	GlobalExecutor *globaldb.SQLExecutor
	Logger         HandlerLogger
}

func (*Handler) CheckHealth

func (h *Handler) CheckHealth(ctx context.Context) (err error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type HandlerLogger

type HandlerLogger struct{ *log.Logger }

func NewHandlerLogger

func NewHandlerLogger(lf *log.Factory) HandlerLogger

Jump to

Keyboard shortcuts

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