Commit Graph

92 Commits

Author SHA1 Message Date
ionutboangiu
d0a435aa6d Migrate to new jetstream API
Upgraded go.mod nats version due to an issue caused by version mismatch
between driver and server (uncertain).

Renamed function from getProcessOptions to getProcessedOptions.

## *NatsER.Serve

- Replaced ChanQueueSubscribe with QueueSubscribe for Core NATS consumer
to handle the message processing directly.

- Since QueueSubscribe is now used regardless of jetstream status, the
message handler has been assigned to a separate variable that can be
reused.

-  The message handler is now dealing with the message processing
directly, therefore the select case listening for the channel which is
feeding NATS messages can be removed together with the channel itself
and the select. Currently, the goroutine within Serve only has to block
until the rdrExit chan is closed.

- Moved the resource check inside the handler right before starting the
message processing goroutine.

## *NatsEE.parseOpts

- Renamed function from parseOpt to parseOpts.

- Handled the error coming from GetNatsOpts function.

## *NatsEE.Connect

- Updated function to return early in case of non-nil nats.Conn value
to reduce nesting.

## *NatsEE.ExportEvent

- Use defer to release resources and RUnlock.

## *NatsEE.Close

- Use defer to Unlock.

- Update function to return early in case of nil nats.Conn value to
reduce nesting.

## ees.GetNatsOpts

- Chose switch over if else when parsing client certificate and keys
opts.

- Updated function to return the errors directly instead of assigning
them to a separate variable right before returning.

## ers.GetNatsOpts

- Chose switch over if else when parsing client certificate and keys
opts.

- Updated function to return the errors directly instead of assigning
them to a separate variable right before returning.

Removed tab from commented natsJetStreamMaxWaitProcessed option
value in config_defaults.go under ers section.

Added integration test for ERs NATS.

Updated ees/ers implementation to use the jetstream package which
separates the jetstream context from Core NATS.

Removed the jsOpts fields from the NatsEE struct. We are now using the
jetStreamMaxWait option directly through a timeout context.

Added streamName option for NATS reader since it is now required to be
specified when creating a consumer (it is not inferred based on subject
anymore).

Updated nats ers integration tests.

Updated tests to also use the new jetstream package.

Updated tests to start the nats-server using their official driver
instead of using the std go exec package. time.Sleeps are now not
required anymore to wait for the server.

In test configurations for nats readers, made sure that natsStreamName
option is populated. It is now required for consumers to know where to
subscribe.
2023-09-28 20:48:39 +02:00
gezimbll
fcc9fc109b Updated go-elasticsearch client 2023-07-04 13:18:54 +02:00
arberkatellari
b1d696fcd7 Add coverage tests for engine 2023-03-15 11:46:17 +01:00
ionutboangiu
bb8a7b8884 Bump go version 2023-02-22 18:21:10 +01:00
ionutboangiu
73dd31a8ca Update to latest amqp 1.0 package version and fix compilation errors 2023-02-22 18:21:10 +01:00
arberkatellari
748764d4a7 Improve tests for container environments 2023-02-21 18:28:52 +01:00
arberkatellari
8518419a32 Move from streadway/amqp to rabbitmq/amqp091-go 2023-02-08 11:23:59 +01:00
ionutboangiu
0013284606 Update go.mod and go.sum 2023-01-23 17:34:06 +01:00
adi
e0418bb576 Updated mongo library 2022-11-18 11:46:25 +01:00
ionutboangiu
ed56887cdc Update fsock library 2022-10-24 13:23:56 +02:00
DanB
873581aa4d DispatcherS - improve failover on cache network errors 2022-09-22 20:22:46 +02:00
DanB
7c18d51581 DispatcherS with caches remote/replication in alpha stage 2022-09-19 12:03:35 +02:00
ionutboangiu
5317c440be Update go.mod and go.sum 2022-07-03 13:08:52 +02:00
nickolasdaniel
8ada2445f5 Changed golang version to 1.18 2022-03-18 11:59:39 +01:00
porosnicuadrian
2be78a74c1 Added exporting to prometheus to stats 2022-01-03 12:25:42 +01:00
andronache98
893bf287d7 Changed go version to 1.17 2021-12-15 19:58:25 +01:00
Trial97
5b150b7da9 Added test for IntService 2021-11-17 18:36:40 +01:00
Trial97
7d7a5be1d1 Updated libphonenumber library 2021-10-25 17:17:25 +03:00
Trial97
6b6d831eda Updated libphonenumber implementation 2021-10-22 11:58:12 +03:00
Trial97
869da96a64 Added *profileIgnoreFilters for attributes 2021-10-08 17:07:20 +03:00
Trial97
fe6ef76f80 Updated DNSAgent 2021-10-01 13:32:42 +02:00
Trial97
7749fcd15b Removed ArgV1ProcessEvent and ThresholdsArgsProcessEvent 2021-09-23 10:42:56 +02:00
Trial97
413aab3119 Updated libphonenumbers library 2021-08-30 17:53:42 +03:00
Trial97
82f08b3fec Added nats ers 2021-06-25 18:15:12 +02:00
Trial97
00cece8943 Updated birpc library 2021-05-19 15:54:14 +02:00
andronache
29286e1671 Repaired context tests 2021-04-20 17:14:08 +02:00
Trial97
cfbe6e709d Added AdminSv1 service 2021-04-13 13:35:03 +02:00
Trial97
8aa7009d36 Updated AttributesSv1 APIs 2021-04-13 13:35:03 +02:00
Trial97
3406d3c7c9 Updated based on new rpc library 2021-04-13 13:35:03 +02:00
Trial97
5353b95e43 Updated go version and replaced ioutil package 2021-03-18 16:46:55 +01:00
Trial97
9cef3b28f4 Added integration tests for birpc codec 2021-02-22 11:53:56 +01:00
Trial97
9f75ab918c Updated biRPC support in connmanager 2021-02-22 11:53:56 +01:00
Trial97
3593bb9557 Moved BiRPC support in rpcclient library 2021-02-22 11:53:56 +01:00
Trial97
983fb75a6a Added .drone.yml file 2021-02-03 19:13:39 +01:00
porosnicuadrian
574656633a Covered gob_codec file 2021-01-20 17:38:10 +01:00
Trial97
7647c367b6 Updated all libraries 2021-01-12 20:01:16 +01:00
Trial97
df702b71aa Finished updating gorm library 2021-01-12 20:01:16 +01:00
Trial97
ca13e8d364 Updated tariffplans gorm statements 2021-01-12 20:01:16 +01:00
Trial97
13f2449376 Started updating to new gorm library 2021-01-12 20:01:16 +01:00
Trial97
3c06f49246 Updated DispatcherS *broadcast, *broadcast_sync and *broadcast_async to behave similar to RPCPool 2020-11-23 16:14:01 +01:00
Trial97
6cbf457e35 Updated agents shutdown 2020-11-16 10:11:46 +01:00
Trial97
505f230b1e Added inotify support for loaders 2020-11-11 15:06:35 +01:00
Trial97
a33806f1d3 Updated rpcclient library 2020-11-09 09:47:24 +01:00
Trial97
c21e6f4829 Updated baningo library 2020-11-05 17:07:50 +01:00
DanB
cd57f86e5a Adding missing bcrypt library to imports 2020-11-02 14:13:06 +01:00
Trial97
0810803475 Updated msgpack library 2020-10-29 17:55:26 +01:00
porosnicuadrian
4db0ba848f Added the latest verison of cron 2020-10-27 17:14:25 +01:00
DanB
a15c69a727 Adding RunTimes to Rate within RateS, redesign of orderRatesOnIntervals 2020-10-20 13:38:31 +02:00
TeoV
39ca3307c1 Add support for *libphonenumber in dynamicDP ( e.g. AttributeS can add fields ) 2020-10-07 15:43:55 +02:00
Trial97
f353f12b68 Updated rpcclient library 2020-10-02 12:45:27 +02:00