registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 3 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 registered tools and provides lookup, search, and detection.

func Default

func Default() *Registry

Default creates a registry pre-loaded with all tools.

func New

func New() *Registry

New creates an empty Registry.

func (*Registry) All

func (r *Registry) All() []tools.Tool

All returns all registered tools in registration order.

func (*Registry) ByCategory

func (r *Registry) ByCategory(category string) []tools.Tool

ByCategory returns all tools in a given category.

func (*Registry) ByID

func (r *Registry) ByID(id string) (tools.Tool, bool)

ByID returns a tool by its ID.

func (*Registry) Detect

func (r *Registry) Detect(clipboard string) []tools.Tool

Detect returns tools whose DetectFromClipboard returns true, sorted by detection priority (JWT > UUID > URL > JSON > Base64 > ...).

func (*Registry) Register

func (r *Registry) Register(tool tools.Tool)

Register adds a tool to the registry.

func (*Registry) Search

func (r *Registry) Search(query string) []tools.Tool

Search returns tools matching a query against name, ID, and keywords.

Jump to

Keyboard shortcuts

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