swagger

package
v0.13.10-patch1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

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) (*spec.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 (d *SwaggerFunctionDiscovery) DetectType(ctx context.Context, baseurl *url.URL) (*plugins.ServiceSpec, error)

func (*SwaggerFunctionDiscovery) IsFunctional

func (d *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