Documentation
¶
Index ¶
- type Protocol
- func (p *Protocol) DeserializeEventMessage(schema *smithy.Schema, types *smithy.TypeRegistry, r io.Reader) (smithy.Deserializable, error)
- func (p *Protocol) DeserializeInitialResponse(schema *smithy.Schema, r io.Reader, out smithy.Deserializable) error
- func (p *Protocol) DeserializeResponse(ctx context.Context, schema *smithy.OperationSchema, ...) error
- func (*Protocol) HasInitialEventMessage() bool
- func (p *Protocol) ID() smithy.ShapeID
- func (p *Protocol) SerializeEventMessage(schema, variant *smithy.Schema, v smithy.Serializable, w io.Writer) error
- func (p *Protocol) SerializeInitialRequest(schema *smithy.Schema, v smithy.Serializable, w io.Writer) error
- func (p *Protocol) SerializeRequest(ctx context.Context, schema *smithy.OperationSchema, in smithy.Serializable, ...) error
- type ProtocolOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct {
// contains filtered or unexported fields
}
Protocol implements aws.protocols#awsJson1_0 and aws.protocols#awsJson1_1.
func New10 ¶
func New10(service *smithy.ServiceSchema, opts ...func(*ProtocolOptions)) *Protocol
New10 returns an instance of the awsJson 1.0 protocol.
func New11 ¶
func New11(service *smithy.ServiceSchema, opts ...func(*ProtocolOptions)) *Protocol
New11 returns an instance of the awsJson 1.1 protocol.
func (*Protocol) DeserializeEventMessage ¶
func (p *Protocol) DeserializeEventMessage(schema *smithy.Schema, types *smithy.TypeRegistry, r io.Reader) (smithy.Deserializable, error)
DeserializeEventMessage implements smithyhttp.ClientProtocol.
func (*Protocol) DeserializeInitialResponse ¶
func (p *Protocol) DeserializeInitialResponse(schema *smithy.Schema, r io.Reader, out smithy.Deserializable) error
DeserializeInitialResponse implements smithyhttp.ClientProtocol.
func (*Protocol) DeserializeResponse ¶
func (p *Protocol) DeserializeResponse( ctx context.Context, schema *smithy.OperationSchema, types *smithy.TypeRegistry, resp *smithyhttp.Response, out smithy.Deserializable, ) error
DeserializeResponse deserializes a response for AWS Json 1.0.
func (*Protocol) HasInitialEventMessage ¶
HasInitialEventMessage is true because this is an RPC protocol.
func (*Protocol) SerializeEventMessage ¶
func (p *Protocol) SerializeEventMessage(schema, variant *smithy.Schema, v smithy.Serializable, w io.Writer) error
SerializeEventMessage implements smithyhttp.ClientProtocol.
func (*Protocol) SerializeInitialRequest ¶
func (p *Protocol) SerializeInitialRequest(schema *smithy.Schema, v smithy.Serializable, w io.Writer) error
SerializeInitialRequest implements smithyhttp.ClientProtocol.
func (*Protocol) SerializeRequest ¶
func (p *Protocol) SerializeRequest( ctx context.Context, schema *smithy.OperationSchema, in smithy.Serializable, req *smithyhttp.Request, ) error
SerializeRequest serializes a request for AWS Json 1.0.
type ProtocolOptions ¶
type ProtocolOptions struct{}
ProtocolOptions configures aws.protocols#awsJson1_0.