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

API consistency with .NET client #12

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

lukebakken
Copy link
Contributor

  • Prefer using IQueueSpecification and IExchangeSpecification instead of string

@lukebakken lukebakken self-assigned this Sep 18, 2024
@lukebakken lukebakken added this to the 0.1.0-alpha.0 milestone Sep 18, 2024
@Gsantomaggio
Copy link
Member

Gsantomaggio commented Sep 18, 2024

In .NET we have both string and IQueueSpecification

@lukebakken
Copy link
Contributor Author

lukebakken commented Sep 18, 2024

In .NET we have both string and IQueueSpecification

Unfortunately you can't do function overloads like that in golang 😢

@Gsantomaggio should I add a function for strings?

@Gsantomaggio
Copy link
Member

Unfortunately you can't do function overloads like that in golang 😢

Yes, of course :)! I was thinking something like:

SourceExchange(exchangeSpec IExchangeSpecification) IBindingSpecification
SourceExchangeByName(exchangeName string) IBindingSpecification

* Prefer using `IQueueSpecification` and `IExchangeSpecification` instead of `string`

For bindings, use strings for source and destination names.

Add sleep so credit is granted from RMQ (HACK)

Add minimal sleep for links to be established

* No need to have exported types and functions in `common.go`

* Simplify functions and remove `PercentCodec` type

Use `fmt.Errorf`

Update modules
@lukebakken lukebakken marked this pull request as ready for review September 23, 2024 19:56
@lukebakken lukebakken merged commit 6d8aaeb into main Sep 24, 2024
1 check passed
@lukebakken lukebakken deleted the rabbitmq-amqp-go-client-3 branch September 24, 2024 14:17
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