plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package plugin provides a metadata registry for external plugins. It stores Manifest information for display purposes (plugin:list, status, debugger). It does NOT manage lifecycle — that is handled by the ServiceProvider system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is a thread-safe metadata registry for plugins.

func NewManager

func NewManager() *Manager

NewManager creates a new plugin registry.

func (*Manager) Count

func (m *Manager) Count() int

Count returns the number of registered plugins.

func (*Manager) Plugins

func (m *Manager) Plugins() []Manifest

Plugins returns all registered manifests sorted by ID.

func (*Manager) Register

func (m *Manager) Register(manifest Manifest)

Register adds a plugin manifest to the registry.

type Manifest

type Manifest struct {
	ID          string
	Name        string
	Version     string
	Description string
	Author      string
	Type        Type
}

Manifest defines the metadata for a registered plugin.

type Type

type Type string

Type defines the type of plugin.

const (
	// TypeHeadless indicates a headless plugin.
	TypeHeadless Type = "headless"
	// TypeView indicates a view plugin.
	TypeView Type = "view"
)

Jump to

Keyboard shortcuts

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