Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Verification_Error_EndpointEmpty = errors.New("Endpoint can not be empty!") NoPermission_For_Endpoint = errors.New("403 Invalid permissions to hit endpoint.") )
Functions ¶
This section is empty.
Types ¶
type BatchDocumentMessage ¶
type BatchDocumentMessage struct {
Message string `json:"message"`
}
type BatchDocumentRequest ¶
type BatchDocumentRequest struct { Items []DocumentInfo // if you full endpoint is blah.us-west-2.cloudsearch.amazonaws.com // then set this to 'blah' Endpoint string `json:"-"` Region string }
func NewBatchDocumentRequest ¶
func NewBatchDocumentRequest() *BatchDocumentRequest
Creates a new BatchDocumentRequest, populating in some defaults
func (BatchDocumentRequest) DeMarshalResponse ¶
func (gir BatchDocumentRequest) DeMarshalResponse(response []byte, headers http.Header, statusCode int) (*BatchDocumentResponse, error)
func (BatchDocumentRequest) Request ¶
func (gir BatchDocumentRequest) Request() (*BatchDocumentResponse, error)
type BatchDocumentResponse ¶
type BatchDocumentResponse struct { Status string `json:"status"` Adds int `json:"adds"` Deletes int `json:"deletes"` Errors []BatchDocumentMessage `json:"errors"` Warnings []BatchDocumentMessage `json:"warnings"` StatusCode int }
type BatchResponseError ¶
func (BatchResponseError) Error ¶
func (b BatchResponseError) Error() string
type DocumentInfo ¶
Click to show internal directories.
Click to hide internal directories.