abe

package
v0.0.0-...-7e1133c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

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

*

*
*
* @param body
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) DeepPathEcho

*

*
*
* @param singleNestedName
* @param body
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) Delete

*

*
*
* @param uuid
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) Echo

*

  • 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

*

  • 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

*

  • 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) ErrorWithDetails

func (a ABitOfEverythingServiceApi) ErrorWithDetails() (*ProtobufEmpty, *APIResponse, error)

*

*
*
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) GetMessageWithBody

func (a ABitOfEverythingServiceApi) GetMessageWithBody(id string, body ExamplepbBody) (*ProtobufEmpty, *APIResponse, error)

*

*
*
* @param id
* @param body
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) GetQuery

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, bytesValue 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 bytesValue
* @param uint32Value
* @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

*

*
*
* @param uuid
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) PostWithEmptyBody

func (a ABitOfEverythingServiceApi) PostWithEmptyBody(name string, body ExamplepbBody) (*ProtobufEmpty, *APIResponse, error)

*

*
*
* @param name
* @param body
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) Timeout

*

*
*
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) Update

*

*
*
* @param uuid
* @param body
* @return *ProtobufEmpty

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

func (*APIClient) CallAPI

func (c *APIClient) CallAPI(path string, method string,
	postBody interface{},
	headerParams map[string]string,
	queryParams url.Values,
	formParams map[string]string,
	fileName string,
	fileBytes []byte) (*resty.Response, error)

func (*APIClient) ParameterToString

func (c *APIClient) ParameterToString(obj interface{}, collectionFormat string) string

func (*APIClient) SelectHeaderAccept

func (c *APIClient) SelectHeaderAccept(accepts []string) string

func (*APIClient) SelectHeaderContentType

func (c *APIClient) SelectHeaderContentType(contentTypes []string) string

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 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"`

	BytesValue string `json:"bytes_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

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

type ProtobufDuration struct {
	Seconds string `json:"seconds,omitempty"`
	Nanos   int32  `json:"nanos,omitempty"`
}

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"`
}

Jump to

Keyboard shortcuts

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