extensions

package
v0.0.0-...-85d8d22 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExtensionProvider

func RegisterExtensionProvider(name string, initFunc func(interface{}) ExtensionProcessor)

Types

type ExtensionProcessor

type ExtensionProcessor interface {
	Init(def *apidef.APIDefinition)
	Insert(swag *spec.Swagger, normalisedPath *models.NormalisedPathMeta, op *spec.Operation, opts map[string]interface{}) error
}

func GetExtensionProcessor

func GetExtensionProcessor(proc ExtensionReader, withConf interface{}) (ExtensionProcessor, error)

type ExtensionReader

type ExtensionReader interface {
	GetSwaggerExtensionProvider() string
}

Jump to

Keyboard shortcuts

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