-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
2,358 additions
and
2,301 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import "package:dart_amqp/dart_amqp.dart"; | ||
|
||
void main(){ | ||
Client client = new Client(); | ||
void main() { | ||
Client client = Client(); | ||
client | ||
.channel() | ||
.then((Channel channel) => channel.queue("hello")) | ||
.then((Queue queue){ | ||
queue.publish("Hello World!"); | ||
print(" [x] Sent 'Hello World!'"); | ||
return client.close(); | ||
.channel() | ||
.then((Channel channel) => channel.queue("hello")) | ||
.then((Queue queue) { | ||
queue.publish("Hello World!"); | ||
print(" [x] Sent 'Hello World!'"); | ||
return client.close(); | ||
}); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import "package:dart_amqp/dart_amqp.dart"; | ||
|
||
void main(List<String> args) { | ||
Client client = new Client(); | ||
Client client = Client(); | ||
client | ||
.channel() | ||
.then((Channel channel) => channel.exchange("logs", ExchangeType.FANOUT)) | ||
.then((Exchange exchange) { | ||
.channel() | ||
.then((Channel channel) => channel.exchange("logs", ExchangeType.FANOUT)) | ||
.then((Exchange exchange) { | ||
String message = args.join(' '); | ||
// We dont care about the routing key as our exchange type is FANOUT | ||
exchange.publish(message, null); | ||
print(" [x] Sent ${message}"); | ||
return client.close(); | ||
}); | ||
} | ||
} |
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
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.