v0

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v0 provides the REST API handlers for MCP Registry access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthRouter

func HealthRouter(svc service.RegistryService) http.Handler

HealthRouter creates a router for health check endpoints

func Router

func Router(svc service.RegistryService) http.Handler

Router creates a new router for the registry API Deprecated: Use API v0.1 instead

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse represents a standardized error response Deprecated: Use API v0.1 instead

type RegistryInfoResponse

type RegistryInfoResponse struct {
	Version      string `json:"version"`
	LastUpdated  string `json:"last_updated"`
	Source       string `json:"source"`
	TotalServers int    `json:"total_servers"`
}

RegistryInfoResponse represents the registry information response Deprecated: Use API v0.1 instead

type Routes

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

Routes defines the routes for the registry API with dependency injection Deprecated: Use API v0.1 instead

func NewRoutes

func NewRoutes(svc service.RegistryService) *Routes

NewRoutes creates a new Routes instance with the provided service Deprecated: Use API v0.1 instead

Jump to

Keyboard shortcuts

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