registry

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 6 modules, 13 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

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