registry

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HookRegistry

type HookRegistry struct {
	// contains filtered or unexported fields
}

func NewHookRegistry

func NewHookRegistry(logger *log.Logger) *HookRegistry

func (*HookRegistry) Add

func (h *HookRegistry) Add(hooks ...*pkg.Hook)

func (*HookRegistry) Hooks

func (h *HookRegistry) Hooks() []*gohook.Hook

Hooks returns all hooks

func (*HookRegistry) Readiness

func (h *HookRegistry) Readiness() *gohook.Hook

Readiness returns the readiness hook It is used to check if the module is ready to serve requests It is not used for the readiness probe The readiness probe is implemented in the module itself

func (*HookRegistry) SetReadinessHook

func (h *HookRegistry) SetReadinessHook(hook *pkg.Hook)

Jump to

Keyboard shortcuts

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