openapi

package
v0.0.0-...-046495f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSpec

func BuildSpec(info Info, eps []*registry.Endpoint) []byte

BuildSpec 把端点列表组装成 OpenAPI 3 文档并序列化为字节(启动期一次,结果冻结缓存)。

func ScalarHTML

func ScalarHTML(specURL string) string

ScalarHTML 返回内嵌指定 spec URL 的 Scalar UI 页面。

Types

type Info

type Info struct {
	Title       string
	Version     string
	Description string
}

Info 是 spec 的标题/版本信息。

Jump to

Keyboard shortcuts

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