Documentation ¶
Index ¶
- Constants
- func CheckARNTopic(ctx context.Context, snsClient *sns.Client, topicARN string) (*string, error)
- func CreateSNS(ctx context.Context, snsClient *sns.Client, topicARN string, ...) (*string, error)
- type DefaultMarshalerUnmarshaler
- type Marshaler
- type Publisher
- type PublisherConfig
- type SNSConfigAtrributes
Constants ¶
View Source
const UUIDAttribute = "UUID"
Variables ¶
This section is empty.
Functions ¶
func CheckARNTopic ¶ added in v0.0.2
Types ¶
type DefaultMarshalerUnmarshaler ¶ added in v0.0.2
type DefaultMarshalerUnmarshaler struct{}
func (DefaultMarshalerUnmarshaler) Marshal ¶ added in v0.0.2
func (d DefaultMarshalerUnmarshaler) Marshal(msg *message.Message) *sns.PublishInput
type Marshaler ¶ added in v0.0.2
type Marshaler interface {
Marshal(msg *message.Message) *sns.PublishInput
}
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(config PublisherConfig, logger watermill.LoggerAdapter) (*Publisher, error)
func (Publisher) AddSubscription ¶ added in v0.0.2
func (Publisher) GetArnTopic ¶ added in v0.0.2
type PublisherConfig ¶
type PublisherConfig struct { AWSConfig aws.Config CreateTopicConfig SNSConfigAtrributes CreateTopicfNotExists bool Marshaler Marshaler }
type SNSConfigAtrributes ¶ added in v0.0.2
type SNSConfigAtrributes struct { DeliveryPolicy string `json:"DeliveryPolicy,omitempty"` DisplayName string `json:"DisplayName,omitempty"` Policy string `json:"Policy,omitempty"` SignatureVersion string `json:"SignatureVersion,omitempty"` TracingConfig string `json:"TracingConfig,omitempty"` KmsMasterKeyId string `json:"KmsMasterKeyId,omitempty"` FifoTopic string `json:"FifoTopic,omitempty"` ContentBasedDeduplication string `json:"ContentBasedDeduplication,omitempty"` }
func (SNSConfigAtrributes) Attributes ¶ added in v0.0.2
func (s SNSConfigAtrributes) Attributes() map[string]string
Click to show internal directories.
Click to hide internal directories.