healthz

package
v0.0.0-...-a786b95 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 {
	Context        context.Context
	GlobalDatabase *globaldb.Handle
	GlobalExecutor *globaldb.SQLExecutor
	Logger         HandlerLogger
}

func (*Handler) CheckHealth

func (h *Handler) CheckHealth() (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