model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIModel

type APIModel struct {
	openapi3.T
	RouteGraph *RouteNode
}

APIModel is the top-level container for the entire discovered API.

type Operation

type Operation struct {
	HTTPMethod string
	FullPath   string

	HandlerPackage string
	HandlerName    string
	GoHandler      types.Object

	// ADDED: To hold metadata from the fluent builder
	BuilderMetadata *respec.Builder

	Spec *openapi3.Operation
}

Operation represents a single API endpoint (e.g., GET /users/{id}).

type RouteNode

type RouteNode struct {
	// ADDED: A reference to the Go variable for this router/group.
	GoVar types.Object

	PathPrefix string
	Parent     *RouteNode
	Children   []*RouteNode
	Operations []*Operation
}

RouteNode represents a single routing scope (a router or a group).

Jump to

Keyboard shortcuts

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