adapter

package
v0.0.0-...-ff7603e Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEndpoints

func ExtractEndpoints(doc *loads.Document) map[string][]Endpoint

func GetSwaggerSpec

func GetSwaggerSpec(jsonURL string) (map[string][]Endpoint, error)

Types

type Endpoint

type Endpoint struct {
	Path   string
	Method string
	Op     *spec.Operation
}

type UInstance

type UInstance struct {
	Name      string
	Address   string
	Config    map[string]string
	BaseURL   string
	JSONURL   string
	Endpoints map[string][]Endpoint
}

Jump to

Keyboard shortcuts

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