Documentation
¶
Index ¶
- type ShapeSerializer
- func (s *ShapeSerializer) Bytes() []byte
- func (s *ShapeSerializer) CloseList()
- func (s *ShapeSerializer) CloseMap()
- func (s *ShapeSerializer) CloseStruct()
- func (s *ShapeSerializer) CloseUnion()
- func (s *ShapeSerializer) WriteBigFloat(_ *smithy.Schema, _ *big.Float)
- func (s *ShapeSerializer) WriteBigInt(_ *smithy.Schema, _ *big.Int)
- func (s *ShapeSerializer) WriteBlob(schema *smithy.Schema, v []byte)
- func (s *ShapeSerializer) WriteBool(schema *smithy.Schema, v bool)
- func (s *ShapeSerializer) WriteDocument(_ *smithy.Schema, _ document.Value)
- func (s *ShapeSerializer) WriteFloat32(schema *smithy.Schema, v float32)
- func (s *ShapeSerializer) WriteFloat64(schema *smithy.Schema, v float64)
- func (s *ShapeSerializer) WriteInt8(schema *smithy.Schema, v int8)
- func (s *ShapeSerializer) WriteInt16(schema *smithy.Schema, v int16)
- func (s *ShapeSerializer) WriteInt32(schema *smithy.Schema, v int32)
- func (s *ShapeSerializer) WriteInt64(schema *smithy.Schema, v int64)
- func (s *ShapeSerializer) WriteKey(_ *smithy.Schema, key string)
- func (s *ShapeSerializer) WriteList(schema *smithy.Schema)
- func (s *ShapeSerializer) WriteMap(schema *smithy.Schema)
- func (s *ShapeSerializer) WriteNil(_ *smithy.Schema)
- func (s *ShapeSerializer) WriteString(schema *smithy.Schema, v string)
- func (s *ShapeSerializer) WriteStruct(schema *smithy.Schema)
- func (s *ShapeSerializer) WriteTime(schema *smithy.Schema, v time.Time)
- func (s *ShapeSerializer) WriteUnion(schema, variant *smithy.Schema)
- type ShapeSerializerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShapeSerializer ¶
type ShapeSerializer struct {
// contains filtered or unexported fields
}
ShapeSerializer serializes Smithy shapes to the AWS query string format.
func NewShapeSerializer ¶
func NewShapeSerializer(action, version string, opts ...func(*ShapeSerializerOptions)) *ShapeSerializer
NewShapeSerializer returns a new ShapeSerializer.
func (*ShapeSerializer) Bytes ¶
func (s *ShapeSerializer) Bytes() []byte
Bytes returns the encoded query string as bytes.
func (*ShapeSerializer) CloseList ¶
func (s *ShapeSerializer) CloseList()
CloseList implements smithy.ShapeSerializer.
func (*ShapeSerializer) CloseMap ¶
func (s *ShapeSerializer) CloseMap()
CloseMap implements smithy.ShapeSerializer.
func (*ShapeSerializer) CloseStruct ¶
func (s *ShapeSerializer) CloseStruct()
CloseStruct implements smithy.ShapeSerializer.
func (*ShapeSerializer) CloseUnion ¶
func (s *ShapeSerializer) CloseUnion()
CloseUnion implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteBigFloat ¶
func (s *ShapeSerializer) WriteBigFloat(_ *smithy.Schema, _ *big.Float)
WriteBigFloat is unimplemented.
func (*ShapeSerializer) WriteBigInt ¶
func (s *ShapeSerializer) WriteBigInt(_ *smithy.Schema, _ *big.Int)
WriteBigInt is unimplemented.
func (*ShapeSerializer) WriteBlob ¶
func (s *ShapeSerializer) WriteBlob(schema *smithy.Schema, v []byte)
WriteBlob implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteBool ¶
func (s *ShapeSerializer) WriteBool(schema *smithy.Schema, v bool)
WriteBool implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteDocument ¶
func (s *ShapeSerializer) WriteDocument(_ *smithy.Schema, _ document.Value)
WriteDocument is unimplemented.
func (*ShapeSerializer) WriteFloat32 ¶
func (s *ShapeSerializer) WriteFloat32(schema *smithy.Schema, v float32)
WriteFloat32 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteFloat64 ¶
func (s *ShapeSerializer) WriteFloat64(schema *smithy.Schema, v float64)
WriteFloat64 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteInt8 ¶
func (s *ShapeSerializer) WriteInt8(schema *smithy.Schema, v int8)
WriteInt8 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteInt16 ¶
func (s *ShapeSerializer) WriteInt16(schema *smithy.Schema, v int16)
WriteInt16 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteInt32 ¶
func (s *ShapeSerializer) WriteInt32(schema *smithy.Schema, v int32)
WriteInt32 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteInt64 ¶
func (s *ShapeSerializer) WriteInt64(schema *smithy.Schema, v int64)
WriteInt64 implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteKey ¶
func (s *ShapeSerializer) WriteKey(_ *smithy.Schema, key string)
WriteKey implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteList ¶
func (s *ShapeSerializer) WriteList(schema *smithy.Schema)
WriteList implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteMap ¶
func (s *ShapeSerializer) WriteMap(schema *smithy.Schema)
WriteMap implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteNil ¶
func (s *ShapeSerializer) WriteNil(_ *smithy.Schema)
WriteNil implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteString ¶
func (s *ShapeSerializer) WriteString(schema *smithy.Schema, v string)
WriteString implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteStruct ¶
func (s *ShapeSerializer) WriteStruct(schema *smithy.Schema)
WriteStruct implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteTime ¶
func (s *ShapeSerializer) WriteTime(schema *smithy.Schema, v time.Time)
WriteTime implements smithy.ShapeSerializer.
func (*ShapeSerializer) WriteUnion ¶
func (s *ShapeSerializer) WriteUnion(schema, variant *smithy.Schema)
WriteUnion implements smithy.ShapeSerializer.
type ShapeSerializerOptions ¶
type ShapeSerializerOptions struct {
// Adjusts serialization for the ec2Query protocol:
// - Member names resolve via @ec2QueryName, then @xmlName
// capitalized, then member name capitalized (instead of @xmlName
// or member name as-is).
// - All lists serialize as flat regardless of @xmlFlattened.
// - Empty lists are omitted (instead of emitting a "Key=" sentinel).
EC2Mode bool
}
ShapeSerializerOptions configures a ShapeSerializer.