This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored naming convention + README
- Loading branch information
Filip
committed
Mar 3, 2017
1 parent
ea157c3
commit f3d5c7e
Showing
18 changed files
with
160 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package config | ||
|
||
const ( | ||
// MappingFile mapping file environment variable | ||
MappingFile = "MAPPING_FILE" | ||
) | ||
|
||
// RabbitEntry RabbitMQ mapping entry | ||
type RabbitEntry struct { | ||
Type string `json:"type"` | ||
Name string `json:"name"` | ||
ConnectionURL string `json:"connection"` | ||
ExchangeName string `json:"topic"` | ||
QueueName string `json:"queue"` | ||
RoutingKey string `json:"routing"` | ||
} | ||
|
||
// AmazonEntry SQS/SNS mapping entry | ||
type AmazonEntry struct { | ||
Type string `json:"type"` | ||
Name string `json:"name"` | ||
Target string `json:"target"` | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"source" : { | ||
"type" : "RabbitMQ", | ||
"name" : "test-rabbit", | ||
"connection" : "amqp://hrhisghq:[email protected]/hrhisghq", | ||
"topic" : "amq.topic", | ||
"queue" : "test-queue", | ||
"routing" : "#" | ||
}, | ||
"destination" : { | ||
"type" : "SNS", | ||
"name" : "test-sns", | ||
"target" : "arn:aws:sns:eu-west-1:XXXXXXXX:test-forwarder" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"source" : { | ||
"type" : "RabbitMQ", | ||
"name" : "test-rabbit", | ||
"connection" : "amqp://guest:guest@localhost:5672/", | ||
"topic" : "amq.topic", | ||
"queue" : "test-queue", | ||
"routing" : "#" | ||
}, | ||
"destination" : { | ||
"type" : "SQS", | ||
"name" : "test-queue", | ||
"target" : "https://sqs.eu-west-1.amazonaws.com/XXXXXXXXX/test-queue" | ||
} | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.