abe

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: BSD-3-Clause Imports: 15 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, enumValue string, pathEnumValue string, nestedPathEnumValue string) (*ExamplepbABitOfEverything, *APIResponse, error)

*

  • Create a new ABitOfEverything
  • This API creates a new ABitOfEverything *
  • @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
  • @param enumValue
  • @param pathEnumValue
  • @param nestedPathEnumValue
  • @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) CreateBody

*

*
*
* @param body
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) DeepPathEcho

*

*
*
* @param singleNestedName name is nested field.
* @param body
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) Delete

*

*
*
* @param uuid
* @return *ProtobufEmpty

func (ABitOfEverythingServiceApi) ErrorWithDetails added in v1.4.0

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

*

*
*
* @return *ProtobufEmpty

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, bytesValue string, uint32Value int64, enumValue string, pathEnumValue string, nestedPathEnumValue 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 pathEnumValue
* @param nestedPathEnumValue
* @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) GetRepeatedQuery added in v1.5.0

func (a ABitOfEverythingServiceApi) GetRepeatedQuery(pathRepeatedFloatValue []float32, pathRepeatedDoubleValue []float64, pathRepeatedInt64Value []string, pathRepeatedUint64Value []string, pathRepeatedInt32Value []int32, pathRepeatedFixed64Value []string, pathRepeatedFixed32Value []int64, pathRepeatedBoolValue []bool, pathRepeatedStringValue []string, pathRepeatedBytesValue []string, pathRepeatedUint32Value []int64, pathRepeatedEnumValue []string, pathRepeatedSfixed32Value []int32, pathRepeatedSfixed64Value []string, pathRepeatedSint32Value []int32, pathRepeatedSint64Value []string) (*ExamplepbABitOfEverythingRepeated, *APIResponse, error)

*

*
*
* @param pathRepeatedFloatValue repeated values. they are comma-separated in path
* @param pathRepeatedDoubleValue
* @param pathRepeatedInt64Value
* @param pathRepeatedUint64Value
* @param pathRepeatedInt32Value
* @param pathRepeatedFixed64Value
* @param pathRepeatedFixed32Value
* @param pathRepeatedBoolValue
* @param pathRepeatedStringValue
* @param pathRepeatedBytesValue
* @param pathRepeatedUint32Value
* @param pathRepeatedEnumValue
* @param pathRepeatedSfixed32Value
* @param pathRepeatedSfixed64Value
* @param pathRepeatedSint32Value
* @param pathRepeatedSint64Value
* @return *ExamplepbABitOfEverythingRepeated

func (ABitOfEverythingServiceApi) Lookup

*

*
*
* @param uuid
* @return *ExamplepbABitOfEverything

func (ABitOfEverythingServiceApi) PostWithEmptyBody added in v1.4.0

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 added in v1.3.0

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

func (*APIClient) CallAPI added in v1.3.0

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 added in v1.3.0

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

func (*APIClient) SelectHeaderAccept added in v1.3.0

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

func (*APIClient) SelectHeaderContentType added in v1.3.0

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

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 CamelCaseServiceNameApi added in v1.4.0

type CamelCaseServiceNameApi struct {
	Configuration *Configuration
}

func NewCamelCaseServiceNameApi added in v1.4.0

func NewCamelCaseServiceNameApi() *CamelCaseServiceNameApi

func NewCamelCaseServiceNameApiWithBasePath added in v1.4.0

func NewCamelCaseServiceNameApiWithBasePath(basePath string) *CamelCaseServiceNameApi

func (CamelCaseServiceNameApi) Empty added in v1.4.0

*

  • Create a new ABitOfEverything
  • This API creates a new ABitOfEverything *
  • @return *ProtobufEmpty

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 EchoRpcApi added in v1.4.0

type EchoRpcApi struct {
	Configuration *Configuration
}

func NewEchoRpcApi added in v1.4.0

func NewEchoRpcApi() *EchoRpcApi

func NewEchoRpcApiWithBasePath added in v1.4.0

func NewEchoRpcApiWithBasePath(basePath string) *EchoRpcApi

func (EchoRpcApi) Echo added in v1.4.0

func (a EchoRpcApi) Echo(value string) (*SubStringMessage, *APIResponse, error)

*

  • Summary: Echo rpc
  • Description Echo *
  • @param value
  • @return *SubStringMessage

func (EchoRpcApi) Echo2 added in v1.4.0

func (a EchoRpcApi) Echo2(body string) (*SubStringMessage, *APIResponse, error)

*

  • Summary: Echo rpc
  • Description Echo *
  • @param body
  • @return *SubStringMessage

func (EchoRpcApi) Echo3 added in v1.4.0

func (a EchoRpcApi) Echo3(value string) (*SubStringMessage, *APIResponse, error)

*

  • Summary: Echo rpc
  • Description Echo *
  • @param value
  • @return *SubStringMessage

type EchoServiceApi added in v1.4.0

type EchoServiceApi struct {
	Configuration *Configuration
}

func NewEchoServiceApi added in v1.4.0

func NewEchoServiceApi() *EchoServiceApi

func NewEchoServiceApiWithBasePath added in v1.4.0

func NewEchoServiceApiWithBasePath(basePath string) *EchoServiceApi

func (EchoServiceApi) Echo added in v1.4.0

*

  • Summary: Echo rpc
  • Description Echo *
  • @param value
  • @return *SubStringMessage

func (EchoServiceApi) Echo2 added in v1.4.0

*

  • Summary: Echo rpc
  • Description Echo *
  • @param body
  • @return *SubStringMessage

func (EchoServiceApi) Echo3 added in v1.4.0

*

  • Summary: Echo rpc
  • Description Echo *
  • @param value
  • @return *SubStringMessage

type ExamplepbABitOfEverything

type ExamplepbABitOfEverything struct {
	SingleNested ABitOfEverythingNested `json:"single_nested,omitempty"`

	Uuid string `json:"uuid"`

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

	PathEnumValue PathenumPathEnum `json:"path_enum_value,omitempty"`

	NestedPathEnumValue MessagePathEnumNestedPathEnum `json:"nested_path_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"`
}

Intentionaly complicated message type to cover many features of Protobuf.

type ExamplepbABitOfEverythingRepeated added in v1.5.0

type ExamplepbABitOfEverythingRepeated struct {
	PathRepeatedFloatValue []float32 `json:"path_repeated_float_value,omitempty"`

	PathRepeatedDoubleValue []float64 `json:"path_repeated_double_value,omitempty"`

	PathRepeatedInt64Value []string `json:"path_repeated_int64_value,omitempty"`

	PathRepeatedUint64Value []string `json:"path_repeated_uint64_value,omitempty"`

	PathRepeatedInt32Value []int32 `json:"path_repeated_int32_value,omitempty"`

	PathRepeatedFixed64Value []string `json:"path_repeated_fixed64_value,omitempty"`

	PathRepeatedFixed32Value []int64 `json:"path_repeated_fixed32_value,omitempty"`

	PathRepeatedBoolValue []bool `json:"path_repeated_bool_value,omitempty"`

	PathRepeatedStringValue []string `json:"path_repeated_string_value,omitempty"`

	PathRepeatedBytesValue []string `json:"path_repeated_bytes_value,omitempty"`

	PathRepeatedUint32Value []int64 `json:"path_repeated_uint32_value,omitempty"`

	PathRepeatedEnumValue []ExamplepbNumericEnum `json:"path_repeated_enum_value,omitempty"`

	PathRepeatedSfixed32Value []int32 `json:"path_repeated_sfixed32_value,omitempty"`

	PathRepeatedSfixed64Value []string `json:"path_repeated_sfixed64_value,omitempty"`

	PathRepeatedSint32Value []int32 `json:"path_repeated_sint32_value,omitempty"`

	PathRepeatedSint64Value []string `json:"path_repeated_sint64_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

func (ExamplepbNumericEnum) String added in v1.5.0

func (e ExamplepbNumericEnum) String() string

String returns a string representation of "NumericEnum"

func (ExamplepbNumericEnum) UnmarshalJSON added in v1.5.0

func (e ExamplepbNumericEnum) UnmarshalJSON(b []byte) error

UnmarshalJSON does a no-op unmarshal to ExamplepbNumericEnum. It just validates that the input is sane.

type MessagePathEnumNestedPathEnum added in v1.5.0

type MessagePathEnumNestedPathEnum struct {
}

func (MessagePathEnumNestedPathEnum) String added in v1.5.0

String returns a string representation of "MessagePathEnum"

func (MessagePathEnumNestedPathEnum) UnmarshalJSON added in v1.5.0

func (e MessagePathEnumNestedPathEnum) UnmarshalJSON(b []byte) error

UnmarshalJSON does a no-op unmarshal to MessagePathEnumNestedPathEnum. It just validates that the input is sane.

type NestedDeepEnum

type NestedDeepEnum struct {
}

DeepEnum is one or zero. - FALSE: FALSE is false. - TRUE: TRUE is true.

type PathenumPathEnum added in v1.5.0

type PathenumPathEnum struct {
}

func (PathenumPathEnum) String added in v1.5.0

func (e PathenumPathEnum) String() string

String returns a string representation of "PathEnum"

func (PathenumPathEnum) UnmarshalJSON added in v1.5.0

func (e PathenumPathEnum) UnmarshalJSON(b []byte) error

UnmarshalJSON does a no-op unmarshal to PathenumPathEnum. It just validates that the input is sane.

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