internal/

directory
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT

Directories

Path Synopsis
Package bundle turns a spec split over files and URLs into one document.
Package bundle turns a spec split over files and URLs into one document.
Package diag is how every stage reports a problem in a spec: a severity, a code, a message, and where in the spec it is.
Package diag is how every stage reports a problem in a spec: a severity, a code, a message, and where in the spec it is.
Package ecma writes ECMA-262 patterns in Go's regexp syntax, keeping their ECMA-262 meaning.
Package ecma writes ECMA-262 patterns in Go's regexp syntax, keeping their ECMA-262 meaning.
Package extension reads the x-* extensions mockzilla-codegen knows into typed values.
Package extension reads the x-* extensions mockzilla-codegen knows into typed values.
gen
client
Package client turns the operations of the Go model into an HTTP client: the client type with its options, the request options of every operation, the methods that call the API, and the response envelopes of the HasEnvelopes methods.
Package client turns the operations of the Go model into an HTTP client: the client type with its options, the request options of every operation, the methods that call the API, and the response envelopes of the HasEnvelopes methods.
mcp
Package mcp turns the operations of the Go model into MCP tools that call the generated client: the tools type that registers them on a server of the official Go SDK, one tool definition and handler per operation, and the input type of every tool.
Package mcp turns the operations of the Go model into MCP tools that call the generated client: the tools type that registers them on a server of the official Go SDK, one tool definition and handler per operation, and the input type of every tool.
models
Package models turns the declarations of the Go model into the data its templates render.
Package models turns the declarations of the Go model into the data its templates render.
operation
Package operation holds what the server, the client and the MCP generators share about an operation: the fields its parameters and bodies go in, the Go type of a body, the status code a response key names, how the runtime names a parameter's style, the encoding of a form body, and the parts the types of an operation are declared in.
Package operation holds what the server, the client and the MCP generators share about an operation: the fields its parameters and bodies go in, the Go type of a body, the status code a response key names, how the runtime names a parameter's style, the encoding of a form body, and the parts the types of an operation are declared in.
server
Package server turns the operations of the Go model into a server: the service contract a service implements, the HTTP adapter that calls it, the router of one framework, and the scaffold files a project starts from.
Package server turns the operations of the Go model into a server: the service contract a service implements, the HTTP adapter that calls it, the router of one framework, and the scaffold files a project starts from.
server/framework
Package framework is what the router of one HTTP framework needs from the generator, and what every framework shares.
Package framework is what the router of one HTTP framework needs from the generator, and what every framework shares.
server/framework/beego
Package beego is the router for github.com/beego/beego/v2.
Package beego is the router for github.com/beego/beego/v2.
server/framework/chi
Package chi is the router for github.com/go-chi/chi.
Package chi is the router for github.com/go-chi/chi.
server/framework/echo
Package echo is the router for github.com/labstack/echo, whose handlers take an echo.Context and return an error.
Package echo is the router for github.com/labstack/echo, whose handlers take an echo.Context and return an error.
server/framework/echov5
Package echov5 is the router for github.com/labstack/echo/v5, whose handlers take an *echo.Context and return an error.
Package echov5 is the router for github.com/labstack/echo/v5, whose handlers take an *echo.Context and return an error.
server/framework/fasthttp
Package fasthttp is the router for github.com/fasthttp/router over github.com/valyala/fasthttp.
Package fasthttp is the router for github.com/fasthttp/router over github.com/valyala/fasthttp.
server/framework/fiber
Package fiber is the router for github.com/gofiber/fiber/v3.
Package fiber is the router for github.com/gofiber/fiber/v3.
server/framework/gin
Package gin is the router for github.com/gin-gonic/gin.
Package gin is the router for github.com/gin-gonic/gin.
server/framework/goframe
Package goframe is the router for github.com/gogf/gf/v2.
Package goframe is the router for github.com/gogf/gf/v2.
server/framework/gorillamux
Package gorillamux is the router for github.com/gorilla/mux.
Package gorillamux is the router for github.com/gorilla/mux.
server/framework/gozero
Package gozero is the router for the rest package of github.com/zeromicro/go-zero: the router of its rest server, which rest.WithRouter gives one.
Package gozero is the router for the rest package of github.com/zeromicro/go-zero: the router of its rest server, which rest.WithRouter gives one.
server/framework/hertz
Package hertz is the router for github.com/cloudwego/hertz.
Package hertz is the router for github.com/cloudwego/hertz.
server/framework/iris
Package iris is the router for github.com/kataras/iris/v12.
Package iris is the router for github.com/kataras/iris/v12.
server/framework/kratos
Package kratos is the router for the HTTP transport of github.com/go-kratos/kratos/v2, whose handlers take a kratos Context and return an error.
Package kratos is the router for the HTTP transport of github.com/go-kratos/kratos/v2, whose handlers take a kratos Context and return an error.
server/framework/stdhttp
Package stdhttp is the router for http.ServeMux of the standard library, with its method and wildcard patterns.
Package stdhttp is the router for http.ServeMux of the standard library, with its method and wildcard patterns.
Package gocode writes Go source text: type expressions as a given file spells them, imports, comments, tags and literals, and formats the result.
Package gocode writes Go source text: type expressions as a given file spells them, imports, comments, tags and literals, and formats the result.
Package gomodel turns the spec IR into a typed Go model: named declarations, fields, pointers, enums, maps and merged allOf schemas.
Package gomodel turns the spec IR into a typed Go model: named declarations, fields, pointers, enums, maps and merged allOf schemas.
Package itest holds the parts of the integration test that can be unit tested: collecting specs, the sandbox module, running and building jobs, the result cache, known failures and the report.
Package itest holds the parts of the integration test that can be unit tested: collecting specs, the sandbox module, running and building jobs, the result cache, known failures and the report.
Package jsonschema writes schemas of the spec IR as JSON Schema 2020-12 documents, the way MCP tools describe their input.
Package jsonschema writes schemas of the spec IR as JSON Schema 2020-12 documents, the way MCP tools describe their input.
Package layout places generated parts in files and gives each folder its package name and import path.
Package layout places generated parts in files and gives each folder its package name and import path.
Package naming turns spec names into Go names and settles clashes between them.
Package naming turns spec names into Go names and settles clashes between them.
Package oasdoc edits an OpenAPI document as a YAML node tree, addressed by JSON pointers.
Package oasdoc edits an OpenAPI document as a YAML node tree, addressed by JSON pointers.
Package prepare turns the input spec into the one the generator reads: files bundled, overlays applied, then filtered, simplified and pruned.
Package prepare turns the input spec into the one the generator reads: files bundled, overlays applied, then filtered, simplified and pruned.
Package provider is the boundary between the generator and the library that reads OpenAPI.
Package provider is the boundary between the generator and the library that reads OpenAPI.
libopenapi
Package libopenapi implements provider.Provider and is the only importer of libopenapi.
Package libopenapi implements provider.Provider and is the only importer of libopenapi.
Package render runs the templates of every generator and puts their output together into files.
Package render runs the templates of every generator and puts their output together into files.
Package spec is the provider-neutral OpenAPI IR: ordered slices only, not changed after build.
Package spec is the provider-neutral OpenAPI IR: ordered slices only, not changed after build.
Package transform filters, simplifies and prunes a spec as a YAML node tree.
Package transform filters, simplifies and prunes a spec as a YAML node tree.

Jump to

Keyboard shortcuts

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