openapis

package
v7.0.0-...-9db2903 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

package openapis 为 [https://pkg.go.dev/github.com/issue9/web/openapi] 提供功能支持

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCDNViewer

func WithCDNViewer(s web.Server, name, logo string) openapi.Option

WithCDNViewer 创建基于 CDN 的 OpenAPI 文档阅读器

name 指定阅读器的名称,当前可用的值:

logo 文档的 LOGO,可以为空,根据 name 值的不同, 对空值的处理会有所不同,具体可参考各自的 WithCDN 文档;

NOTE: 若需要更精细的控制,可以直接调用 github.com/issue9/webuse/v7/openapis/scalargithub.com/issue9/webuse/v7/openapis/swagger 包中的方法。

Types

This section is empty.

Directories

Path Synopsis
Package scalar 提供了 scalar 的实现 [scalar]: https://github.com/scalar/scalar
Package scalar 提供了 scalar 的实现 [scalar]: https://github.com/scalar/scalar
Package swagger 提供 SwaggerUI 的实现 [SwaggerUI]: https://swagger.io
Package swagger 提供 SwaggerUI 的实现 [SwaggerUI]: https://swagger.io

Jump to

Keyboard shortcuts

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