116 Commits

Author SHA1 Message Date
arberkatellari
9dda6a264b Update go-dimeter library 2026-01-13 11:21:29 +01:00
ionutboangiu
02f31a5047 update go-diameter library 2025-11-20 11:35:29 +01:00
armirveliaj
b1d51cb349 update go version 2025-11-17 18:22:16 +01:00
arberkatellari
7678bf181f Add ce_applications to diameter_agent config 2025-08-15 13:20:57 +02:00
arberkatellari
5b66678313 Add offline internal DB functionality for dataDB,storDB & configDB 2025-05-13 17:07:17 +02:00
ionutboangiu
a71c803bc1 update prometheus deps 2025-05-03 21:44:51 +02:00
ionutboangiu
bd8c9d3b5e migrate guardian package to external dep 2025-04-22 19:35:11 +02:00
arberkatellari
7363e29f93 Revise deb_packages script and update Go version 2025-04-18 13:18:37 +02:00
ionutboangiu
d14d62b865 update prom client library 2025-03-25 14:27:52 +01:00
ionutboangiu
c60712f454 Bump go version to 1.24.0 2025-02-21 13:22:04 +01:00
ionutboangiu
c895681980 Improve CoreSv1.Status API with more detailed metrics
- add new metrics (off by default)
- add Debug boolean option for full metric details
- add Timezone option for 'running_since' field
- update default metrics shown and their constants
- remove utils.GetStartTime(), now use process metrics
2024-11-03 13:19:45 +01:00
ionutboangiu
926dd4c4ec Update postgres driver version 2024-11-03 13:19:45 +01:00
ionutboangiu
9b8ac3199b Revise EfSv1.ReplayEvents API + tests
- renamed parameter type: ArgsReplyFailedPosts -> ReplayEventsParams
- renamed param fields:
  - FailedRequestsInDir -> SourcePath
  - FailedRequestsOutDir -> FailedPath
  - TypeProvider -> Provider
- changed param fields types from *string to string
- used the SourcePath and FailedPath params directly instead of creating separate variables
- used filepath.WalkDir instead of reading the directory and looping over the entries
- used slices.ContainsFunc to check if the file belongs to any module (if 1+ is specified)
- used filepath.Join instead of path.Join
- used the path provided by WalkFunc instead of building the file paths ourselves
- made error returns more descriptive
- added logs for directories/files that are skipped
- paths that cannot be accessed are skipped after logging the error
2024-09-25 20:58:51 +02:00
ionutboangiu
fe1a2a13bd Update bleve library to latest version 2024-09-25 20:58:51 +02:00
ionutboangiu
1a66dd52dd chore: format go.mod
deleted all indirect dependencies and ran:

- go mod tidy
- go get -u ./...
- go mod tidy
2024-09-05 20:46:40 +02:00
ionutboangiu
3187bca82e update rpcclient library (#4413) 2024-09-05 20:46:40 +02:00
gezimblliku
04f2c69b05 updated dependencies with the latest versions 2024-08-22 20:39:59 +02:00
ionutboangiu
fbdc6f015a bump go version 2024-08-21 20:59:10 +02:00
Gezim Blliku
80249e1074 implemented janusagent & added to services 2024-07-21 19:07:43 +02:00
arberkatellari
ac96e53c43 Update rpcclient revising error handling 2024-06-30 17:55:59 +02:00
arberkatellari
bd571376a7 Update kamevapi version 2024-03-08 16:38:50 +01:00
ionutboangiu
1ef2afaa97 Update/remove dependencies
Remove cenkalti/rpc2 dependency and update client constructor.
Commented tests that only start and stop engine.

Fixed compilation errors caused by Azure/go-amqp update.

Remove cgrates/ugocodec dependency since we have everything
we need in ugoriji/go/codec and add tests for it.
2023-11-15 14:03:21 +01:00
ionutboangiu
26cdb571b8 Upgrade MongoDB driver to 1.13
- Set (but comment) serverAPI options (currently distinct api and
create.size BSON field are deprecated + possible others that are untested)
- Remove the custom time decoder used for mongo BSON
datetime values. The custom decoder was only converting these values
into UTC and was not any different from the default time.Time
decoder in the MongoDB driver, which also handles BSON string, int64,
and document values.
- Implement 'buildURL' function to connect to mongo (can also be
used for mysql and postgres)
- Update function names, variable names, and comments for clarity
- Replace 'bsonx.Regex' with the Regex primitive (deprecated since 1.12).
- Use simple concatenation instead of Sprintf
- Declare 'decimalType' locally, replace global 'decimalType'
- Simplify several functions without altering functionality
- Converting directly from a D to an M is deprecated. We are now decoding
  directly in a M.
- Used errors.As and errors.Is for proper error comparison and assertion
- Revised sloppy reassignments and added missing error checks
2023-11-14 18:24:21 +01:00
ionutboangiu
4c34d321de Add sanity check to prevent xml reader panic
HierarchyPath parser now returns nil when
the path is empty (instead of a string slice with one
EmptyString element).

If isAbsolute is set to true, when calling the AsString
method on a nil HierarchyPath, only the separator will
be returned. Alternatively, if isAbsolute is false, it
will just return . to signal that the path currently
being processed is the one required.This avoids a nil
expr error coming from the xmlquery library.

Use the Query and QueryAll functions from the xmlquery
package to be able to handle the errors ourselves and
avoid panics.

Remove config default value for xmlRootPath. The field
will remain commented in config_defaults for reference.

Add tests for HierarchyPath.AsString function.

Add comments for XmlProvider and xmlRootPath opt.

Update XmlProvider String() func based on the comment
which specifies that it should display the already
parsed values out of cache.
2023-10-19 17:19:30 +02:00
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