plugin

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNamespace

func RegisterNamespace(ns string, f RegistryFunc)

RegisterNamespace is the function called by a component that is pluggable, to register its namespace and a function to register the plugins.

func RegisterPlugin

func RegisterPlugin(ns, name string, newFunc any)

RegisterPlugin is called to register a new plugin in the given namespace. Its called internally by reva, and should not be used by external plugins.

Types

type RegistryFunc

type RegistryFunc func(name string, newFunc any)

RegistryFunc is the func a component that is pluggable must define to register the new func in its own registry. It is responsibility of the component to type assert the new func with the expected one and panic if not.

Jump to

Keyboard shortcuts

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