Documentation ¶
Index ¶
- type ABitOfEverythingNested
- type ABitOfEverythingServiceApi
- func (a ABitOfEverythingServiceApi) Create(floatValue float32, doubleValue float64, int64Value string, uint64Value string, ...) (*ExamplepbABitOfEverything, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) CreateBody(body ExamplepbABitOfEverything) (*ExamplepbABitOfEverything, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) DeepPathEcho(singleNestedName string, body ExamplepbABitOfEverything) (*ExamplepbABitOfEverything, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Delete(uuid string) (*ProtobufEmpty, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Echo(value string) (*SubStringMessage, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Echo2(body string) (*SubStringMessage, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Echo3(value string) (*SubStringMessage, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) GetMessageWithBody(id string, body ExamplepbBody) (*ProtobufEmpty, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) GetQuery(uuid string, singleNestedName string, singleNestedAmount int64, ...) (*ProtobufEmpty, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Lookup(uuid string) (*ExamplepbABitOfEverything, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Timeout() (*ProtobufEmpty, *APIResponse, error)
- func (a ABitOfEverythingServiceApi) Update(uuid string, body ExamplepbABitOfEverything) (*ProtobufEmpty, *APIResponse, error)
- 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 ExamplepbABitOfEverything
- type ExamplepbBody
- type ExamplepbNumericEnum
- type NestedDeepEnum
- type ProtobufDuration
- type ProtobufEmpty
- type SubStringMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABitOfEverythingNested ¶
type ABitOfEverythingNested struct { // name is nested field. Name string `json:"name,omitempty"` Amount int64 `json:"amount,omitempty"` Ok NestedDeepEnum `json:"ok,omitempty"` }
Nested is nested type.
type ABitOfEverythingServiceApi ¶
type ABitOfEverythingServiceApi struct {
Configuration *Configuration
}
func NewABitOfEverythingServiceApi ¶
func NewABitOfEverythingServiceApi() *ABitOfEverythingServiceApi
func NewABitOfEverythingServiceApiWithBasePath ¶
func NewABitOfEverythingServiceApiWithBasePath(basePath string) *ABitOfEverythingServiceApi
func (ABitOfEverythingServiceApi) Create ¶
func (a ABitOfEverythingServiceApi) Create(floatValue float32, doubleValue float64, int64Value string, uint64Value string, int32Value int32, fixed64Value string, fixed32Value int64, boolValue bool, stringValue string, uint32Value int64, sfixed32Value int32, sfixed64Value string, sint32Value int32, sint64Value string, nonConventionalNameValue string) (*ExamplepbABitOfEverything, *APIResponse, error)
*
* * * @param floatValue * @param doubleValue * @param int64Value * @param uint64Value * @param int32Value * @param fixed64Value * @param fixed32Value * @param boolValue * @param stringValue * @param uint32Value * @param sfixed32Value * @param sfixed64Value * @param sint32Value * @param sint64Value * @param nonConventionalNameValue * @return *ExamplepbABitOfEverything
func (ABitOfEverythingServiceApi) CreateBody ¶
func (a ABitOfEverythingServiceApi) CreateBody(body ExamplepbABitOfEverything) (*ExamplepbABitOfEverything, *APIResponse, error)
*
* * * @param body * @return *ExamplepbABitOfEverything
func (ABitOfEverythingServiceApi) DeepPathEcho ¶
func (a ABitOfEverythingServiceApi) DeepPathEcho(singleNestedName string, body ExamplepbABitOfEverything) (*ExamplepbABitOfEverything, *APIResponse, error)
*
* * * @param singleNestedName * @param body * @return *ExamplepbABitOfEverything
func (ABitOfEverythingServiceApi) Delete ¶
func (a ABitOfEverythingServiceApi) Delete(uuid string) (*ProtobufEmpty, *APIResponse, error)
*
* * * @param uuid * @return *ProtobufEmpty
func (ABitOfEverythingServiceApi) Echo ¶
func (a ABitOfEverythingServiceApi) Echo(value string) (*SubStringMessage, *APIResponse, error)
*
- Echo allows posting a StringMessage value.
- It also exposes multiple bindings. This makes it useful when validating that the OpenAPI v2 API description exposes documentation correctly on all paths defined as additional_bindings in the proto. *
- @param value
- @return *SubStringMessage
func (ABitOfEverythingServiceApi) Echo2 ¶ added in v1.3.0
func (a ABitOfEverythingServiceApi) Echo2(body string) (*SubStringMessage, *APIResponse, error)
*
- Echo allows posting a StringMessage value.
- It also exposes multiple bindings. This makes it useful when validating that the OpenAPI v2 API description exposes documentation correctly on all paths defined as additional_bindings in the proto. *
- @param body
- @return *SubStringMessage
func (ABitOfEverythingServiceApi) Echo3 ¶ added in v1.3.0
func (a ABitOfEverythingServiceApi) Echo3(value string) (*SubStringMessage, *APIResponse, error)
*
- Echo allows posting a StringMessage value.
- It also exposes multiple bindings. This makes it useful when validating that the OpenAPI v2 API description exposes documentation correctly on all paths defined as additional_bindings in the proto. *
- @param value
- @return *SubStringMessage
func (ABitOfEverythingServiceApi) GetMessageWithBody ¶ added in v1.3.1
func (a ABitOfEverythingServiceApi) GetMessageWithBody(id string, body ExamplepbBody) (*ProtobufEmpty, *APIResponse, error)
*
* * * @param id * @param body * @return *ProtobufEmpty
func (ABitOfEverythingServiceApi) GetQuery ¶ added in v1.2.0
func (a ABitOfEverythingServiceApi) GetQuery(uuid string, singleNestedName string, singleNestedAmount int64, singleNestedOk string, floatValue float32, doubleValue float64, int64Value string, uint64Value string, int32Value int32, fixed64Value string, fixed32Value int64, boolValue bool, stringValue string, uint32Value int64, enumValue string, sfixed32Value int32, sfixed64Value string, sint32Value int32, sint64Value string, repeatedStringValue []string, oneofString string, nonConventionalNameValue string, timestampValue time.Time, repeatedEnumValue []string) (*ProtobufEmpty, *APIResponse, error)
*
* * * @param uuid * @param singleNestedName name is nested field. * @param singleNestedAmount * @param singleNestedOk - FALSE: FALSE is false. - TRUE: TRUE is true. * @param floatValue * @param doubleValue * @param int64Value * @param uint64Value * @param int32Value * @param fixed64Value * @param fixed32Value * @param boolValue * @param stringValue * @param uint32Value TODO(yugui) add bytes_value. * @param enumValue - ZERO: ZERO means 0 - ONE: ONE means 1 * @param sfixed32Value * @param sfixed64Value * @param sint32Value * @param sint64Value * @param repeatedStringValue * @param oneofString * @param nonConventionalNameValue * @param timestampValue * @param repeatedEnumValue repeated enum value. it is comma-separated in query. - ZERO: ZERO means 0 - ONE: ONE means 1 * @return *ProtobufEmpty
func (ABitOfEverythingServiceApi) Lookup ¶
func (a ABitOfEverythingServiceApi) Lookup(uuid string) (*ExamplepbABitOfEverything, *APIResponse, error)
*
* * * @param uuid * @return *ExamplepbABitOfEverything
func (ABitOfEverythingServiceApi) Timeout ¶
func (a ABitOfEverythingServiceApi) Timeout() (*ProtobufEmpty, *APIResponse, error)
*
* * * @return *ProtobufEmpty
func (ABitOfEverythingServiceApi) Update ¶
func (a ABitOfEverythingServiceApi) Update(uuid string, body ExamplepbABitOfEverything) (*ProtobufEmpty, *APIResponse, error)
*
* * * @param uuid * @param body * @return *ProtobufEmpty
type APIClient ¶ added in v1.3.0
type APIClient struct {
// contains filtered or unexported fields
}
func (*APIClient) ParameterToString ¶ added in v1.3.0
func (*APIClient) SelectHeaderAccept ¶ added in v1.3.0
func (*APIClient) SelectHeaderContentType ¶ added in v1.3.0
type APIResponse ¶ added in v1.3.0
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 ¶ added in v1.3.0
func NewAPIResponse(r *http.Response) *APIResponse
func NewAPIResponseWithError ¶ added in v1.3.0
func NewAPIResponseWithError(errorMessage string) *APIResponse
type Configuration ¶ added in v1.3.0
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 ¶ added in v1.3.0
func NewConfiguration() *Configuration
func (*Configuration) AddDefaultHeader ¶ added in v1.3.0
func (c *Configuration) AddDefaultHeader(key string, value string)
func (*Configuration) GetAPIKeyWithPrefix ¶ added in v1.3.0
func (c *Configuration) GetAPIKeyWithPrefix(APIKeyIdentifier string) string
func (*Configuration) GetBasicAuthEncodedString ¶ added in v1.3.0
func (c *Configuration) GetBasicAuthEncodedString() string
type ExamplepbABitOfEverything ¶
type ExamplepbABitOfEverything struct { SingleNested ABitOfEverythingNested `json:"single_nested,omitempty"` Uuid string `json:"uuid,omitempty"` Nested []ABitOfEverythingNested `json:"nested,omitempty"` FloatValue float32 `json:"float_value,omitempty"` DoubleValue float64 `json:"double_value,omitempty"` Int64Value string `json:"int64_value,omitempty"` Uint64Value string `json:"uint64_value,omitempty"` Int32Value int32 `json:"int32_value,omitempty"` Fixed64Value string `json:"fixed64_value,omitempty"` Fixed32Value int64 `json:"fixed32_value,omitempty"` BoolValue bool `json:"bool_value,omitempty"` StringValue string `json:"string_value,omitempty"` Uint32Value int64 `json:"uint32_value,omitempty"` EnumValue ExamplepbNumericEnum `json:"enum_value,omitempty"` Sfixed32Value int32 `json:"sfixed32_value,omitempty"` Sfixed64Value string `json:"sfixed64_value,omitempty"` Sint32Value int32 `json:"sint32_value,omitempty"` Sint64Value string `json:"sint64_value,omitempty"` RepeatedStringValue []string `json:"repeated_string_value,omitempty"` OneofEmpty ProtobufEmpty `json:"oneof_empty,omitempty"` OneofString string `json:"oneof_string,omitempty"` MapValue map[string]ExamplepbNumericEnum `json:"map_value,omitempty"` MappedStringValue map[string]string `json:"mapped_string_value,omitempty"` MappedNestedValue map[string]ABitOfEverythingNested `json:"mapped_nested_value,omitempty"` NonConventionalNameValue string `json:"nonConventionalNameValue,omitempty"` TimestampValue time.Time `json:"timestamp_value,omitempty"` RepeatedEnumValue []ExamplepbNumericEnum `json:"repeated_enum_value,omitempty"` }
type ExamplepbBody ¶ added in v1.3.1
type ExamplepbBody struct {
Name string `json:"name,omitempty"`
}
type ExamplepbNumericEnum ¶
type ExamplepbNumericEnum struct { }
NumericEnum is one or zero. - ZERO: ZERO means 0 - ONE: ONE means 1
type NestedDeepEnum ¶
type NestedDeepEnum struct { }
DeepEnum is one or zero. - FALSE: FALSE is false. - TRUE: TRUE is true.
type ProtobufDuration ¶ added in v1.2.0
type ProtobufEmpty ¶
type ProtobufEmpty struct { }
service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
type SubStringMessage ¶
type SubStringMessage struct {
Value string `json:"value,omitempty"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.