Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export sqs_messages function #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

xiuliren
Copy link
Contributor

otherwise the example in README.md won't work.

@xiuliren
Copy link
Contributor Author

ping @samoconnor

@xiuliren
Copy link
Contributor Author

is this package deprecated? It seems that AWSSDK is preferred.

@xiuliren
Copy link
Contributor Author

xiuliren commented Feb 4, 2018

removed the export function, but add some missing packages to fix the test error.
could you take a look? @samoconnor

@samoconnor
Copy link
Contributor

Hi @jingpengw, sorry about the delayed response.
No, this package isn't deprecated, this is a hand-written interface that takes care of error handling, retries, etc. AWSSDK is auto-generated by a script and simply provides a thin wrapper for the raw HTTP web service.

See the AWSCore.jl doc:

The AWSSDK.jl package provides automatically generated low-level API wrappers for each operation in each Amazon Web Service.

The following high-level packages are also available: AWS S3, AWS SQS, AWS SNS, AWS IAM, AWS EC2, AWS Lambda, AWS SES and AWS SDB. These packages include operation specific result structure parsing, error handling, type convenience functions, iterators, etc.

@@ -20,11 +20,11 @@ export sqs_list_queues, sqs_get_queue, sqs_create_queue, sqs_delete_queue,


using AWSCore
using SymDict
using AWSSDK.SQS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWSSQS.jl does not need AWSSDK.jl
It calls AWSCore.Services.sqs, defined here: https://github.com/JuliaCloud/AWSCore.jl/blob/master/src/Services.jl#L1572

using HTTP

using MbedTLS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason for changing the order of HTTP and MbedTLS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, just the SymDict was needed. Otherwise it won't compile.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying the order of using SymDict was an issue? What was the error message?

REQUIRE Outdated
Retry
MbedTLS
HTTP 0.5.4
HTTP
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the presence of the minimum versions in REQUIRE causing a problem for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably not, I did not know that this is minimum version. was thinking about required version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added back of the tags.

@@ -16,15 +16,15 @@ export sqs_list_queues, sqs_get_queue, sqs_create_queue, sqs_delete_queue,
sqs_set_policy, sqs_name, sqs_arn,
sqs_send_message, sqs_send_message_batch, sqs_receive_message,
sqs_delete_message, sqs_flush, sqs_get_queue_attributes, sqs_count,
sqs_busy_count
sqs_busy_count, sqs_messages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm hesitant to export the iterator because it has no test cases and needs a bit more work to be user friendlily. At present, it doesn't behave nicely if there are no more messages.
Note: beb67ce

If you're using it and would like to write some test cases that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants