Documentation ¶
Index ¶
- type AWSServiceProvider
- func (p *AWSServiceProvider) CreateQueue(subject string) (string, *string, error)
- func (p *AWSServiceProvider) PollQueueRealTime(queueName string, queueUrl *string, onEventHandler func(interface{}))
- func (p *AWSServiceProvider) PublishEvent(subject string, region string, eventData interface{})
- func (p *AWSServiceProvider) SubscribeEvent(subject, region string, onEventHandler func(interface{}))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSServiceProvider ¶
type AWSServiceProvider struct { AWSId string AWSRegion string AWSSNSClient *sns.SNS AWSSQSClient *sqs.SQS }
func NewAWSServiceProvider ¶
func NewAWSServiceProvider(id string, region string) *AWSServiceProvider
Create instance of AWS Provider
func (*AWSServiceProvider) CreateQueue ¶
func (p *AWSServiceProvider) CreateQueue(subject string) (string, *string, error)
Create Queue
func (*AWSServiceProvider) PollQueueRealTime ¶
func (p *AWSServiceProvider) PollQueueRealTime(queueName string, queueUrl *string, onEventHandler func(interface{}))
Real Time SQS Poller
func (*AWSServiceProvider) PublishEvent ¶
func (p *AWSServiceProvider) PublishEvent(subject string, region string, eventData interface{})
Publish Event on SNS
func (*AWSServiceProvider) SubscribeEvent ¶
func (p *AWSServiceProvider) SubscribeEvent(subject, region string, onEventHandler func(interface{}))
Subscribe Event
Click to show internal directories.
Click to hide internal directories.