Documentation ¶
Index ¶
- type APIClient
- func (c *APIClient) CallAPI(path string, method string, postBody interface{}, ...) (*resty.Response, error)
- func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string
- func (c *APIClient) SelectHeaderAccept(accepts []string) string
- func (c *APIClient) SelectHeaderContentType(contentTypes []string) string
- type APIResponse
- type Configuration
- type ExamplepbRepeatedResponseBodyOut
- type ExamplepbRepeatedResponseBodyOutResponse
- type ExamplepbRepeatedResponseStrings
- type ExamplepbResponseBodyMessage
- type ExamplepbResponseBodyMessageResponse
- type ExamplepbResponseBodyOut
- type ExamplepbResponseBodyOutResponse
- type ExamplepbResponseBodyReq
- type ResponseBodyServiceApi
- func (a ResponseBodyServiceApi) GetResponseBody(data string) (*ExamplepbResponseBodyOutResponse, *APIResponse, error)
- func (a ResponseBodyServiceApi) ListResponseBodies(data string) ([]ExamplepbRepeatedResponseBodyOutResponse, *APIResponse, error)
- func (a ResponseBodyServiceApi) ListResponseStrings(data string) ([]string, *APIResponse, error)
- type ResponseResponseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) ParameterToString ¶
func (*APIClient) SelectHeaderAccept ¶
func (*APIClient) SelectHeaderContentType ¶
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the swagger operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
type Configuration ¶
type Configuration struct { Username string `json:"userName,omitempty"` Password string `json:"password,omitempty"` APIKeyPrefix map[string]string `json:"APIKeyPrefix,omitempty"` APIKey map[string]string `json:"APIKey,omitempty"` Debug bool `json:"debug,omitempty"` DebugFile string `json:"debugFile,omitempty"` OAuthToken string `json:"oAuthToken,omitempty"` BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` AccessToken string `json:"accessToken,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` APIClient *APIClient Transport *http.Transport Timeout *time.Duration `json:"timeout,omitempty"` }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) GetAPIKeyWithPrefix ¶
func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string
func (*Configuration) GetBasicAuthEncodedString ¶
func (c *Configuration) GetBasicAuthEncodedString() string
type ExamplepbRepeatedResponseBodyOut ¶ added in v1.7.0
type ExamplepbRepeatedResponseBodyOut struct {
Response []ExamplepbRepeatedResponseBodyOutResponse `json:"response,omitempty"`
}
type ExamplepbRepeatedResponseBodyOutResponse ¶ added in v1.7.0
type ExamplepbRepeatedResponseBodyOutResponse struct { Data string `json:"data,omitempty"` Type_ ResponseResponseType `json:"type,omitempty"` }
type ExamplepbRepeatedResponseStrings ¶ added in v1.7.0
type ExamplepbRepeatedResponseStrings struct {
Values []string `json:"values,omitempty"`
}
type ExamplepbResponseBodyMessage ¶
type ExamplepbResponseBodyMessage struct { Request string `json:"request,omitempty"` Response ExamplepbResponseBodyMessageResponse `json:"response,omitempty"` }
type ExamplepbResponseBodyMessageResponse ¶
type ExamplepbResponseBodyMessageResponse struct {
Data string `json:"data,omitempty"`
}
type ExamplepbResponseBodyOut ¶
type ExamplepbResponseBodyOut struct {
Response ExamplepbResponseBodyOutResponse `json:"response,omitempty"`
}
type ExamplepbResponseBodyOutResponse ¶
type ExamplepbResponseBodyOutResponse struct {
Data string `json:"data,omitempty"`
}
type ExamplepbResponseBodyReq ¶
type ExamplepbResponseBodyReq struct {
Data string `json:"data,omitempty"`
}
type ResponseBodyServiceApi ¶
type ResponseBodyServiceApi struct {
Configuration *Configuration
}
func NewResponseBodyServiceApi ¶
func NewResponseBodyServiceApi() *ResponseBodyServiceApi
func NewResponseBodyServiceApiWithBasePath ¶
func NewResponseBodyServiceApiWithBasePath(basePath string) *ResponseBodyServiceApi
func (ResponseBodyServiceApi) GetResponseBody ¶
func (a ResponseBodyServiceApi) GetResponseBody(data string) (*ExamplepbResponseBodyOutResponse, *APIResponse, error)
*
* * * @param data * @return *ExamplepbResponseBodyOutResponse
func (ResponseBodyServiceApi) ListResponseBodies ¶ added in v1.7.0
func (a ResponseBodyServiceApi) ListResponseBodies(data string) ([]ExamplepbRepeatedResponseBodyOutResponse, *APIResponse, error)
*
* * * @param data * @return []ExamplepbRepeatedResponseBodyOutResponse
func (ResponseBodyServiceApi) ListResponseStrings ¶ added in v1.7.0
func (a ResponseBodyServiceApi) ListResponseStrings(data string) ([]string, *APIResponse, error)
*
* * * @param data * @return []string
type ResponseResponseType ¶ added in v1.7.0
type ResponseResponseType struct { }
Source Files ¶
- api_client.go
- api_response.go
- configuration.go
- examplepb_repeated_response_body_out.go
- examplepb_repeated_response_body_out_response.go
- examplepb_repeated_response_strings.go
- examplepb_response_body_message.go
- examplepb_response_body_message_response.go
- examplepb_response_body_out.go
- examplepb_response_body_out_response.go
- examplepb_response_body_req.go
- response_body_service_api.go
- response_response_type.go
Click to show internal directories.
Click to hide internal directories.