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

package jsonrpc

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

Package jsonrpc provides JSON RPC utilities for serialization of AWS requests and responses.

Index

Package Files

jsonrpc.go unmarshal_error.go

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

func Build Uses

func Build(req *request.Request)

Build builds a JSON payload for a JSON RPC request.

func Unmarshal Uses

func Unmarshal(req *request.Request)

Unmarshal unmarshals a response for a JSON RPC service.

func UnmarshalError Uses

func UnmarshalError(req *request.Request)

UnmarshalError unmarshals an error response for a JSON RPC service.

func UnmarshalMeta Uses

func UnmarshalMeta(req *request.Request)

UnmarshalMeta unmarshals headers from a response for a JSON RPC service.

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 jsonrpc imports 10 packages (graph) and is imported by 7121 packages. Updated 2020-02-10. Refresh now. Tools for package owners.