builtin

package
v0.0.0-...-9204231 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package builtin provides a self-registration mechanism for built-in plugins. Each plugin package calls Register() in its init() function — the platform just imports the package and everything wires automatically.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPlugins

func AllPlugins() []plugin.BuiltInPluginDef

AllPlugins returns all registered built-in plugin definitions.

func RegisterPlugin

func RegisterPlugin(def plugin.BuiltInPluginDef)

RegisterPlugin adds a built-in plugin definition to the global registry. Called from plugin package init() functions.

Types

type RouteRegistration

type RouteRegistration struct {
	Slug     string
	Function string
	// HandlerFactory is set by each plugin's init() and resolved during Fx wiring.
	// We store the function name → the wiring layer maps it to the Go handler.
	HandlerKey string
}

RouteRegistration holds a deferred route registration function. It is called during Fx startup with the actual handler instance.

Directories

Path Synopsis
Package balance implements the user-balance built-in plugin.
Package balance implements the user-balance built-in plugin.
Package cabinetbot is the default built-in Telegram bot plugin.
Package cabinetbot is the default built-in Telegram bot plugin.
Package remnawave implements the remnawave-provider built-in plugin handlers.
Package remnawave implements the remnawave-provider built-in plugin handlers.
Package tariff implements the tariff-manager built-in plugin.
Package tariff implements the tariff-manager built-in plugin.

Jump to

Keyboard shortcuts

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