Documentation ¶
Index ¶
- func AddAsGetRequestMiddleware(stack *middleware.Stack) error
- type Array
- type Encoder
- type Map
- type Object
- type Value
- func (qv Value) Array(locationName string) *Array
- func (qv Value) Base64EncodeBytes(v []byte)
- func (qv Value) BigDecimal(v *big.Float)
- func (qv Value) BigInteger(v *big.Int)
- func (qv Value) Boolean(v bool)
- func (qv Value) Byte(v int8)
- func (qv Value) Double(v float64)
- func (qv Value) Float(v float32)
- func (qv Value) Integer(v int32)
- func (qv Value) Long(v int64)
- func (qv Value) Map(keyLocationName string, valueLocationName string) *Map
- func (qv Value) Object() *Object
- func (qv Value) Short(v int16)
- func (qv Value) String(v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAsGetRequestMiddleware ¶
func AddAsGetRequestMiddleware(stack *middleware.Stack) error
AddAsGetRequestMiddleware adds a middleware to the Serialize stack after the operation serializer that will convert the query request body to a GET operation with the query message in the HTTP request querystring.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array represents the encoding of Query lists and sets. A Query array is a representation of a list of values of a fixed type. A serialized array might look like the following:
ListName.member.1=foo &ListName.member.2=bar &Listname.member.3=baz
type Encoder ¶
type Encoder struct { Value // contains filtered or unexported fields }
Encoder is a Query encoder that supports construction of Query body values using methods.
func NewEncoder ¶
NewEncoder returns a new Query body encoder
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map represents the encoding of Query maps. A Query map is a representation of a mapping of arbitrary string keys to arbitrary values of a fixed type. A Map differs from an Object in that the set of keys is not fixed, in that the values must all be of the same type, and that map entries are ordered. A serialized map might look like the following:
MapName.entry.1.key=Foo &MapName.entry.1.value=spam &MapName.entry.2.key=Bar &MapName.entry.2.value=eggs
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents the encoding of Query structures and unions. A Query object is a representation of a mapping of string keys to arbitrary values where there is a fixed set of keys whose values each have their own known type. A serialized object might look like the following:
ObjectName.Foo=value &ObjectName.Bar=5
func (*Object) FlatKey ¶
FlatKey adds the given named key to the Query object. Returns a Value encoder that should be used to encode a Query value type. The value will be flattened if it is a map or array.
func (*Object) Key ¶
Key adds the given named key to the Query object. Returns a Value encoder that should be used to encode a Query value type.
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
Value represents a Query Value type.
func (Value) Array ¶
Array returns a new Array encoder.
func (Value) Base64EncodeBytes ¶
Base64EncodeBytes encodes v as a base64 query string value. This is intended to enable compatibility with the JSON encoder.
func (Value) BigDecimal ¶
BigDecimal encodes v as a query string value
func (Value) BigInteger ¶
BigInteger encodes v as a query string value
func (Value) Map ¶
Map returns a new Map encoder.