Documentation
¶
Index ¶
- func RegisterQueue(awsSession *session.Session, clusterName, name string) (queueURL, queueARN string, err error)
- func SetQueuePolicy(config config.Config, manager *queuemanager.QueueManager) error
- func Subscribe(config config.Config, manager *queuemanager.QueueManager, ctx context.Context)
- type ArnEquals
- type Condition
- type Policy
- type Queue
- type Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterQueue ¶
func RegisterQueue(awsSession *session.Session, clusterName, name string) (queueURL, queueARN string, err error)
RegisterQueue wkll create the Queue so it is accessible to SNS.
func SetQueuePolicy ¶
func SetQueuePolicy(config config.Config, manager *queuemanager.QueueManager) error
func Subscribe ¶
func Subscribe(config config.Config, manager *queuemanager.QueueManager, ctx context.Context)
Subscribe will listen to the global queue and distribute messages
Types ¶
type ArnEquals ¶
type ArnEquals struct {
AwsSourceArn string `json:"aws:SourceArn"`
}
ArnEquals is a mapping for the SourceArn
type Condition ¶
type Condition struct {
ArnEquals ArnEquals `json:"ArnEquals"`
}
Condition defines the Condition for Statments
type Policy ¶
type Policy struct { Version string `json:"Version"` ID string `json:"Id"` Statement []Statement `json:"Statement"` }
Policy wraps the JSON policy
Click to show internal directories.
Click to hide internal directories.