openapi

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 18 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)

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