Documentation ¶
Overview ¶
Package jsonrpc provides JSON RPC utilities for serialization of AWS requests and responses.
Index ¶
- Variables
- func Build(req *request.Request)
- func Unmarshal(req *request.Request)
- func UnmarshalError(req *request.Request)
- func UnmarshalMeta(req *request.Request)
- func WithQueryCompatibility(queryExceptions map[string]func(protocol.ResponseMetadata, string) error) func(*UnmarshalTypedError)
- type UnmarshalTypedError
Constants ¶
This section is empty.
Variables ¶
var BuildHandler = request.NamedHandler{ Name: "awssdk.jsonrpc.Build", Fn: Build, }
BuildHandler is a named request handler for building jsonrpc protocol requests
var UnmarshalErrorHandler = request.NamedHandler{ Name: "awssdk.jsonrpc.UnmarshalError", Fn: UnmarshalError, }
UnmarshalErrorHandler is a named request handler for unmarshaling jsonrpc protocol request errors
var UnmarshalHandler = request.NamedHandler{ Name: "awssdk.jsonrpc.Unmarshal", Fn: Unmarshal, }
UnmarshalHandler is a named request handler for unmarshaling jsonrpc protocol requests
var UnmarshalMetaHandler = request.NamedHandler{ Name: "awssdk.jsonrpc.UnmarshalMeta", Fn: UnmarshalMeta, }
UnmarshalMetaHandler is a named request handler for unmarshaling jsonrpc protocol request metadata
Functions ¶
func UnmarshalError ¶
UnmarshalError unmarshals an error response for a JSON RPC service.
func UnmarshalMeta ¶
UnmarshalMeta unmarshals headers from a response for a JSON RPC service.
func WithQueryCompatibility ¶ added in v1.44.169
func WithQueryCompatibility(queryExceptions map[string]func(protocol.ResponseMetadata, string) error) func(*UnmarshalTypedError)
Types ¶
type UnmarshalTypedError ¶ added in v1.28.0
type UnmarshalTypedError struct {
// contains filtered or unexported fields
}
UnmarshalTypedError provides unmarshaling errors API response errors for both typed and untyped errors.
func NewUnmarshalTypedError ¶ added in v1.28.0
func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata) error) *UnmarshalTypedError
NewUnmarshalTypedError returns an UnmarshalTypedError initialized for the set of exception names to the error unmarshalers
func NewUnmarshalTypedErrorWithOptions ¶ added in v1.44.169
func NewUnmarshalTypedErrorWithOptions(exceptions map[string]func(protocol.ResponseMetadata) error, optFns ...func(*UnmarshalTypedError)) *UnmarshalTypedError
func (*UnmarshalTypedError) UnmarshalError ¶ added in v1.28.0
func (u *UnmarshalTypedError) UnmarshalError( resp *http.Response, respMeta protocol.ResponseMetadata, ) (error, error)
UnmarshalError attempts to unmarshal the HTTP response error as a known error type. If unable to unmarshal the error type, the generic SDK error type will be used.