Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry holds a collection of all available editor plugins.

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates a new plugin registry.

func NewRegistryWithPlugins

func NewRegistryWithPlugins(
	mappingConfig *mappings.MappingConfig,
	logger *slog.Logger,
	recorder metrics.Recorder,
) *Registry

func (*Registry) Get

func (r *Registry) Get(editorType pluginapi.EditorType) (pluginapi.Plugin, bool)

Get retrieves a plugin by its name.

func (*Registry) GetNames

func (r *Registry) GetNames() []string

func (*Registry) Register

func (r *Registry) Register(plugin pluginapi.Plugin)

Register adds a new plugin to the registry.

Jump to

Keyboard shortcuts

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