registry

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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