svc

package
v0.0.0-...-19e654c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL