openapi

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 13 Imported by: 3

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)

Types

type APIDoc added in v1.3.7

type APIDoc struct {
	sync.RWMutex

	Doc *registry.OpenAPI
}

func (*APIDoc) AddEndpoint added in v1.3.7

func (ad *APIDoc) AddEndpoint(api *registry.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() *registry.OpenAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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