Commit Graph

31 Commits

Author SHA1 Message Date
Gabriele Santomaggio d84c3d22de
use env
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-03-05 10:30:08 +01:00
Gabriele Santomaggio 6cd3f90025
Implement JWT (OAuth 2) (#39)
- add tls connection test
- Implement JWT (OAuth 2) closes https://github.com/rabbitmq/rabbitmq-amqp-go-client/issues/23
- refactor connection interfaces  to support only one endpoint  
- refactor Environment interfaces to support multiple endpoints 
- Validate the features for RabbitMQ 4.1 like OAuth refresh token 
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-03-05 09:46:28 +01:00
Gabriele Santomaggio 24649319d8
Implement Filters (#38)
* Closes: Implement properties-filter and application-properties-filter #25
* Refactor the interfaces to be more coherent
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-27 13:58:59 +01:00
Gabriele Santomaggio 8ffd1e6fc3
static check (#36)
* static check
* remove duplication
* add tests

---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-24 15:04:19 +01:00
Gabriele Santomaggio a0dbb5594d
Add args to the exchanges (#34)
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-21 10:32:00 +01:00
Gabriele Santomaggio 941ecfe6f6
Update go.mod (#35)
* Update go.mod
* Update AZURE to 1.4.0 stable
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-20 09:53:49 +01:00
Gabriele Santomaggio 8ade8eff40
Add custom exchange type and headers (#33)
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-19 12:02:05 +01:00
Gabriele Santomaggio db3f233aef
Validate Version (#32)
and product. Version should be >= 4.0 and product should be RabbitMQ.
closes: https://github.com/rabbitmq/rabbitmq-amqp-go-client/issues/26

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-18 15:06:04 +01:00
Gabriele Santomaggio 4f689b7546
more tests (#31)
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-18 10:28:49 +01:00
Gabriele Santomaggio b108942f04
update documentation [skip ci] (#30)
* update documentation [skip ci]

---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-17 15:49:12 +01:00
Gabriele Santomaggio 54eab6556d
Rename the package name (#29)
* Rename the package name
* Fixes https://github.com/rabbitmq/rabbitmq-amqp-go-client/issues/28


Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-17 14:04:13 +01:00
Gabriele Santomaggio 72ac394935
Add examples (#27)
* Add examples
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-14 11:08:09 +01:00
Gabriele Santomaggio 031a2ac54d
add stream support (#24)
* Implement the stream support and filtering for the stream
---------
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-13 12:04:35 +01:00
Gabriele Santomaggio 707fe72c3d
Auto recovery connection publishers and consumers (#22)
* Closes: #4
*. Closes: #5
* Add auto-reconnection for connection, producers and consumers 

---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-02-07 11:00:14 +01:00
Gabriele Santomaggio 89c4dd74a4
Refactor the API interfaces (#21)
* Refactor the API 
* Use the interfaces to define the targets for queues, exchanges and bindings 
* Implement the producer message target-based
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-01-30 11:29:44 +01:00
Gabriele Santomaggio bfc8b02de9
remove unsed files
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-01-22 10:52:40 +01:00
Gabriele Santomaggio 4c3913b7c5
script
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-01-22 10:10:46 +01:00
Gabriele Santomaggio cb006411f5
First consumer version (#19)
* First consumer version
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-01-22 09:56:23 +01:00
dependabot[bot] 023979a0ad
Bump golang.org/x/net from 0.29.0 to 0.33.0 (#18)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.29.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.29.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-16 15:29:51 +01:00
Gabriele Santomaggio 35b8893b93
Add multi uris support (#17)
* Multi uris configuration
*  remove the Interfaces
* Add outcome delivery
* refactor
* refactor state
---------
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2025-01-16 15:26:12 +01:00
Gabriele Santomaggio 1a6679a201
Implement publisher (#16)
* Implement publisher
* API refactor 
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2024-11-21 10:34:08 +01:00
Gabriele Santomaggio 60e006b2a3
remove builders (#15)
* remove builders
---------
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2024-11-15 08:37:28 +01:00
Michal Kuratczyk 5fc29f4968
Add support for querying queue info (#13)
Request `GET /queues/:queue` and return the details or ErrDoesNotExist
2024-10-01 15:25:12 -07:00
Michal Kuratczyk e662d9534b
Add AmqpQueue.Purge() (#14) 2024-10-01 14:39:33 -07:00
Michal Kuratczyk 95d4df61ad
Bump go-amqp to 1.2.0 2024-10-01 12:43:03 +02:00
Luke Bakken 6d8aaeb2b8
Merge pull request #12 from rabbitmq/rabbitmq-amqp-go-client-3
API consistency with .NET client
2024-09-24 07:17:49 -07:00
Luke Bakken b9a14aaf38
API consistency with .NET client
* 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
2024-09-23 12:49:16 -07:00
Gabriele Santomaggio 189408c5bb
Restore the Azure Client (#11)
The null value is fixed here https://github.com/Azure/go-amqp/pull/336

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2024-09-16 09:34:27 +02:00
Gabriele Santomaggio 05f7cd9fbb
First implementation for Exchanges and bindings (#2)
* First implementation for  Exchanges and bindings
---------
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2024-09-11 14:42:05 +02:00
Gabriele Santomaggio fa7d5d9413
Implement connection and management (#1)
* Implement connection and management 
* Setup CI  
* First version for queue declaration
---------

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
2024-09-10 11:26:46 +02:00
Gabriele Santomaggio 668513f9ce
Initial commit 2024-09-02 08:28:11 +02:00