plugins

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package plugins provides API types and handlers for the dev.toolhive/plugins extension endpoints.

Package plugins provides API types and handlers for the dev.toolhive/plugins extension endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(svc service.RegistryService) http.Handler

Router returns an HTTP handler for the dev.toolhive/plugins extension routes.

Types

type ListPluginsQuery

type ListPluginsQuery struct {
	Search string
	Status string // comma-separated for IN filtering, e.g. "active,deprecated"
	Limit  int    // default 50, max 100
	Cursor string
}

ListPluginsQuery holds parsed query parameters for GET /plugins (list).

type PluginListMetadata

type PluginListMetadata struct {
	Count      int    `json:"count"`
	NextCursor string `json:"nextCursor,omitempty"`
}

PluginListMetadata is the metadata object in list responses.

type PluginListResponse

type PluginListResponse struct {
	Plugins  []thvregistry.Plugin `json:"plugins"`
	Metadata PluginListMetadata   `json:"metadata"`
}

PluginListResponse is the response for GET /plugins (list).

type Routes

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

Routes holds dependencies for plugins extension handlers.

Jump to

Keyboard shortcuts

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