chiadapter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package chiadapter exposes a live chi router as an api2mcp Source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

Source adapts a chi.Routes (e.g. *chi.Mux).

func New

func New(router chi.Routes) *Source

New returns a Source backed by the given chi router.

func (*Source) Operations

func (s *Source) Operations(_ context.Context) ([]ir.Operation, error)

Operations implements source.Source by walking the chi route tree. chi paths already use the "{id}" template syntax, so no conversion is needed.

Jump to

Keyboard shortcuts

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