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
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
Click to show internal directories.
Click to hide internal directories.