openapi

package
v1.4.9-alpha-3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 18 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPrefix = "/openapi-ui/"

Functions

func RegisterOpenAPI added in v0.22.2

func RegisterOpenAPI(router *gin.Engine)

func RegisterOpenAPIDoc added in v1.4.9

func RegisterOpenAPIDoc(api *pb.OpenAPI)

func RegisterOpenAPIHandler added in v1.4.9

func RegisterOpenAPIHandler(s server.Server, opts ...server.HandlerOption) error

Types

type APIDoc added in v1.3.7

type APIDoc struct {
	sync.RWMutex

	Doc *pb.OpenAPI
}

func (*APIDoc) AddEndpoint added in v1.3.7

func (ad *APIDoc) AddEndpoint(api *pb.OpenAPI)

func (*APIDoc) AddServer added in v1.3.7

func (ad *APIDoc) AddServer(url, desc string)

func (*APIDoc) Init added in v1.3.7

func (ad *APIDoc) Init(services ...*registry.Service)

func (*APIDoc) Out added in v1.3.7

func (ad *APIDoc) Out() *pb.OpenAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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