swagger

package
v1.8.12 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFromFileOrHTTP

func LoadFromFileOrHTTP(ctx context.Context, url string) ([]byte, error)

func RetrieveSwaggerDocFromUrl

func RetrieveSwaggerDocFromUrl(ctx context.Context, url string) (*openapi.Swagger, error)

Types

type SwaggerFunctionDiscovery

type SwaggerFunctionDiscovery struct {
	// contains filtered or unexported fields
}

func (*SwaggerFunctionDiscovery) DetectFunctions

func (f *SwaggerFunctionDiscovery) DetectFunctions(ctx context.Context, url *url.URL, _ func() fds.Dependencies, updatecb func(fds.UpstreamMutator) error) error

func (*SwaggerFunctionDiscovery) DetectType

func (f *SwaggerFunctionDiscovery) DetectType(ctx context.Context, baseurl *url.URL) (*plugins.ServiceSpec, error)

func (*SwaggerFunctionDiscovery) IsFunctional

func (f *SwaggerFunctionDiscovery) IsFunctional() bool

type SwaggerFunctionDiscoveryFactory

type SwaggerFunctionDiscoveryFactory struct {
	DetectionTimeout time.Duration
	FunctionPollTime time.Duration
	SwaggerUrisToTry []string
}

func (*SwaggerFunctionDiscoveryFactory) NewFunctionDiscovery

Jump to

Keyboard shortcuts

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