Documentation ¶
Index ¶
- func MarshalMessage(message streams.Message) (*string, error)
- func NewEventBusArn(region, accountID, baseBusName string) *string
- func NewQueueUrl(region, accountID, queueName string) *string
- func NewTopic(region, accountID, baseTopic string) *string
- type EventBridgeWriter
- type SnsWriter
- type SqsReader
- type SqsWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalMessage ¶
MarshalMessage converts a streams.Message into a JSON string ready to be published to Amazon Simple Notification Service (SNS) and/or Amazon Simple Queue Service (SQS).
func NewEventBusArn ¶
NewEventBusArn builds an Amazon EventBridge's Event Bus Amazon Resource Name (ARN).
func NewQueueUrl ¶
NewQueueUrl builds an Amazon Simple Queue Service's Queue URL.
Types ¶
type EventBridgeWriter ¶
type EventBridgeWriter struct {
// contains filtered or unexported fields
}
EventBridgeWriter is the Amazon Web Services EventBridge (formerly known as CloudWatch Events) implementation of streams.Writer.
func NewEventBridgeWriter ¶
func NewEventBridgeWriter(c *eventbridge.Client, accountID, region, busName string) EventBridgeWriter
NewEventBridgeWriter allocates a new EventBridgeWriter ready to be used.
func (EventBridgeWriter) WriteBatch ¶
type SnsWriter ¶
type SnsWriter struct {
// contains filtered or unexported fields
}
SnsWriter is the Amazon Web Services Simple Notification Service (SNS) implementation of streams.Writer.
func NewSnsWriter ¶
NewSnsWriter allocates a new SnsWriter ready to be used.