skills

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package skills provides API types and handlers for the dev.toolhive/skills extension endpoints (THV-0029).

Package skills provides API types and handlers for the dev.toolhive/skills extension endpoints (THV-0029).

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/skills extension routes.

Types

type ListSkillsQuery

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

ListSkillsQuery holds parsed query parameters for GET /skills (list).

type Routes

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

Routes holds dependencies for skills extension handlers.

type SkillListMetadata

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

SkillListMetadata is the metadata object in list responses.

type SkillListResponse

type SkillListResponse struct {
	Skills   []thvregistry.Skill `json:"skills"`
	Metadata SkillListMetadata   `json:"metadata"`
}

SkillListResponse is the response for GET /skills (list).

Jump to

Keyboard shortcuts

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