Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidResponse = fmt.Errorf("invalid response")
)
Functions ¶
func CopyReader ¶
func CopyReader(r io.Reader) (io.ReadSeekCloser, error)
func NewReader ¶
func NewReader(p []byte) io.ReadSeekCloser
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { XMLName xml.Name `xml:"Error"` Code string `xml:"Code" json:"code"` Message string `xml:"Message" json:"message"` RequestID string `xml:"RequestId" json:"requestId"` }
func (ErrorResponse) Error ¶
func (e ErrorResponse) Error() string
type ErrorStatus ¶
type ErrorStatus struct { Status string `xml:"Code" json:"code"` Message string `xml:"Message" json:"message"` }
func (ErrorStatus) Error ¶
func (e ErrorStatus) Error() string
Click to show internal directories.
Click to hide internal directories.