Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderMessageID = "streams-message-id" // The unique identifier of a message. HeaderStreamName = "streams-stream-name" // Name of the stream of a message. HeaderStreamKey = "streams-stream-key" // Key of the stream from a message. HeaderContentType = "streams-content-type" // Type of data of a content from a message. HeaderMessageTime = "streams-message-time" // Timestamp in Unix milliseconds when the message was published. )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AccountID string // AWS Account identifier streams belongs to. Region string // AWS Region a where streams are located. }
Config is the basic configuration schema for Amazon messaging services.
type WriteFunc ¶
WriteFunc Amazon service-agnostic message writing function. A Writer instance will call this function which is implemented by actual drivers (Amazon SNS/SQS).
type Writer ¶
type Writer struct {
WriteFunc WriteFunc
}
A Writer is a generic message writer for Amazon services. This component centralizes a batching group buffering algorithm which later schedules and executes message writing tasks concurrently to increase write throughput.
This type is NOT ready for usage as standalone component, concrete writers (e.g. sns.Writer, sqs.Writer) should be used instead.
Click to show internal directories.
Click to hide internal directories.