registry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const BindingsPanicMsg = "" /* 175-byte string literal not displayed */

Variables

This section is empty.

Functions

func RegisterFunc

func RegisterFunc[C pkg.Config, T pkg.Input](config C, f pkg.HookFunc[T]) bool

RegisterFunc registers a hook with the global registry. It accepts both module and application hook configurations. Returns true to allow usage in var declarations: var _ = registry.RegisterFunc(...)

Types

type HookRegistry

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

HookRegistry stores registered module and application hooks. It is a singleton accessed via Registry().

func Registry

func Registry() *HookRegistry

Registry returns singleton instance, it is used it only in controller

func (*HookRegistry) ApplicationHooks added in v0.7.0

ApplicationHooks returns all registered application hooks.

func (*HookRegistry) ModuleHooks added in v0.7.0

func (h *HookRegistry) ModuleHooks() []pkg.Hook[pkg.HookConfig, *pkg.HookInput]

ModuleHooks returns all registered module hooks.

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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