Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCredentials ¶
func ConvertCredentials[T IPublisherOptions](creds string) T
Types ¶
type AwsOptions ¶
type IPublisher ¶
type IPublisher interface {
Publish(message string)
}
func NewPublisher ¶
func NewPublisher(publisherType PublisherType, credentials string) IPublisher
type IPublisherOptions ¶
type IPublisherOptions interface {
// contains filtered or unexported methods
}
type PublisherType ¶
type PublisherType string
const ( AwsSQS PublisherType = "sqs" AwsSNS = "sns" )
type SnsPublisher ¶
type SnsPublisher struct {
// contains filtered or unexported fields
}
func NewSnsPublisher ¶
func NewSnsPublisher(options AwsOptions) SnsPublisher
func (SnsPublisher) Publish ¶
func (p SnsPublisher) Publish(message string)
type SqsPublisher ¶
type SqsPublisher struct {
// contains filtered or unexported fields
}
func NewSqsPublisher ¶
func NewSqsPublisher(options AwsOptions) SqsPublisher
func (SqsPublisher) Publish ¶
func (p SqsPublisher) Publish(message string)
Click to show internal directories.
Click to hide internal directories.