Documentation ¶
Index ¶
Constants ¶
View Source
const MaxUploadSize = 5 * 1024 * 1024
Variables ¶
View Source
var (
DEBUG = false
)
View Source
var InvalidChars = regexp.MustCompile("[^\u0009\u000a\u000d\u0020-\uD7FF\uE000-\uFFFD]")
http://docs.aws.amazon.com/cloudsearch/latest/developerguide/preparing-data.html
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ProcessSQS ¶
type S3Event ¶
type S3Event struct {
Records []S3EventRecord `json:"Records"`
}
type S3EventRecord ¶ added in v1.0.4
type S3EventRecord struct { EventVersion string `json:"eventVersion"` EventSource string `json:"eventSource"` AwsRegion string `json:"awsRegion"` EventTime time.Time `json:"eventTime"` EventName string `json:"eventName"` UserIdentity struct { PrincipalID string `json:"principalId"` } `json:"userIdentity"` RequestParameters struct { SourceIPAddress string `json:"sourceIPAddress"` } `json:"requestParameters"` ResponseElements struct { XAmzRequestID string `json:"x-amz-request-id"` XAmzID2 string `json:"x-amz-id-2"` } `json:"responseElements"` S3 struct { S3SchemaVersion string `json:"s3SchemaVersion"` ConfigurationID string `json:"configurationId"` Bucket struct { Name string `json:"name"` OwnerIdentity struct { PrincipalID string `json:"principalId"` } `json:"ownerIdentity"` Arn string `json:"arn"` } `json:"bucket"` Object struct { Key string `json:"key"` Size int `json:"size"` ETag string `json:"eTag"` VersionID string `json:"versionId"` Sequencer string `json:"sequencer"` } `json:"object"` } `json:"s3"` }
func (S3EventRecord) Parse ¶ added in v1.0.4
func (r S3EventRecord) Parse() (bucket, key string, err error)
Click to show internal directories.
Click to hide internal directories.