aws-sdk-go: github.com/aws/aws-sdk-go/private/protocol/restjson Index | Files

package restjson

import "github.com/aws/aws-sdk-go/private/protocol/restjson"

Package restjson provides RESTful JSON serialization of AWS requests and responses.

Index

Package Files

restjson.go unmarshal_error.go

Variables

var BuildHandler = request.NamedHandler{
    Name: "awssdk.restjson.Build",
    Fn:   Build,
}

BuildHandler is a named request handler for building restjson protocol requests

var UnmarshalErrorHandler = request.NamedHandler{
    Name: "awssdk.restjson.UnmarshalError",
    Fn:   UnmarshalError,
}

UnmarshalErrorHandler is a named request handler for unmarshaling restjson protocol request errors

var UnmarshalHandler = request.NamedHandler{
    Name: "awssdk.restjson.Unmarshal",
    Fn:   Unmarshal,
}

UnmarshalHandler is a named request handler for unmarshaling restjson protocol requests

var UnmarshalMetaHandler = request.NamedHandler{
    Name: "awssdk.restjson.UnmarshalMeta",
    Fn:   UnmarshalMeta,
}

UnmarshalMetaHandler is a named request handler for unmarshaling restjson protocol request metadata

func Build Uses

func Build(r *request.Request)

Build builds a request for the REST JSON protocol.

func Unmarshal Uses

func Unmarshal(r *request.Request)

Unmarshal unmarshals a response body for the REST JSON protocol.

func UnmarshalError Uses

func UnmarshalError(r *request.Request)

UnmarshalError unmarshals a response error for the REST JSON protocol.

func UnmarshalMeta Uses

func UnmarshalMeta(r *request.Request)

UnmarshalMeta unmarshals response headers for the REST JSON protocol.

type UnmarshalTypedError Uses

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

UnmarshalTypedError provides unmarshaling errors API response errors for both typed and untyped errors.

func NewUnmarshalTypedError Uses

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 (*UnmarshalTypedError) UnmarshalError Uses

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.

Package restjson imports 11 packages (graph) and is imported by 3232 packages. Updated 2020-08-11. Refresh now. Tools for package owners.