Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost:5000" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api" )
Variables ¶
View Source
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // URL is the base URL of the upstream server URL *url.URL // Transport is an inner transport for the client Transport http.RoundTripper // AuthInfo is for authentication AuthInfo runtime.ClientAuthInfoWriter }
type SwaggerSimplePetstore ¶ added in v1.0.15
type SwaggerSimplePetstore struct { Pet *pet.Client Store *store.Client Transport runtime.ClientTransport }
SwaggerSimplePetstore is a client for swagger simple petstore
func New ¶
func New(c Config) *SwaggerSimplePetstore
New creates a new swagger simple petstore HTTP client.
Click to show internal directories.
Click to hide internal directories.