Commit Graph

29 Commits

Author SHA1 Message Date
ionutboangiu
62619ba3a5 Replace interface{} with any 2023-06-05 10:55:32 +02:00
ionutboangiu
85cc7e03f0 Enable bijson support for SessionSv1 service
Add bidirectional support for sessions while maintaining changing the
current rpc service registration method. Modified methods in
sessionsbirpc.go file to satisfy the birpc.ClientConnector interface
and removed BiRPC prefix before creating the service that's to be
registered.
2023-05-03 10:02:15 +02:00
ionutboangiu
cb7ea790de Update rpcclient library to latest version
Replace all instances of rpcclient.ClientConnector with birpc.ClientConnector.

Pass context, maxReconnectInterval, delayFunc and birpcClient to rpcclient
constructors.

Remove redundant time.Duration conversions (e.g. time.Duration(1*time.Second)
now becomes time.Second.

Add context where needed (context.Background() for tests, context.TODO()
for places where it should be passed from somewhere else).

Implement that functionality of the SessionSv1.Sleep call, in sessions/sessions
instead of apier/v1.

Make changes in utils/server.go (replacing the old rpc2 library with github.com/cgrates/birpc).

Change the way we register birpc methods for sessions in services, using a helper function
defined in engine/libengine.go.
2023-05-03 10:02:15 +02:00
Trial97
5d2c05902e Updated internal RPCSet 2020-03-04 14:14:53 +01:00
Trial97
b4fe82c6d7 Updated rpcclient library 2019-12-09 18:04:26 +02:00
DanB
33483edc93 Modified NewInternalDB signature to include encoding, renamed MetaJSONRpc -> MetaJSON 2019-11-29 20:54:32 +01:00
Trial97
a08b190a4e Replaced IsSliceMember with SliceHasMember for constant slices 2019-08-08 19:12:47 +02:00
Tripon Alexandru-Ionut
bbc34b1f77 Removed unused InternalTtl 2019-04-17 18:57:09 +02:00
Tripon Alexandru-Ionut
7d95f1220a Added RPCSet 2019-04-09 17:36:14 +02:00
Tripon Alexandru-Ionut
0580c5ba39 Updated internal RPC 2019-04-09 17:36:14 +02:00
Tripon Alexandru-Ionut
6b487537b8 Started adding dispatcher internal connections 2019-04-09 17:36:14 +02:00
Tripon Alexandru-Ionut
c75482a6dc Updated RemoteHost structure 2019-04-01 18:37:40 +02:00
Tripon Alexandru-Ionut
c4a83afdd2 Renamed config.HAPoolConfig to config.RemoteHost 2019-03-29 13:27:32 +01:00
DanB
772322e6f4 Redesign of CacheS init 2019-03-27 15:18:26 +01:00
TeoV
3252fe791b Add integration test for filterS (type *stats) 2019-02-25 20:03:54 +01:00
TeoV
523a41ba56 Fixes #1243 2018-10-26 08:55:49 +02:00
TeoV
3e872ee47a Update TLS config to consider CA from Authorized hosts 2018-10-23 11:24:14 +02:00
TeoV
f0cace6fc0 Add script for create certificate for server and client and add test test tls connection 2018-06-04 16:30:50 +03:00
TeoV
7bd6c5841c Update TLS connection 2018-06-04 11:25:29 +03:00
edwardro22
b651b06826 Removed copyright from go doc 2017-09-10 15:02:46 +00:00
DanB
37c853cb91 RPCClient with lazyConnect 2016-11-08 16:03:30 +01:00
DanB
401625861d Updated project README, COPYRIGHT information 2016-09-02 13:04:34 +02:00
DanB
38487d4ba2 Adding Transport option for RPC connections, support for both *json and *gob 2016-06-18 14:25:03 +02:00
DanB
8e05e19cc3 HA tesitng for BROADCAST pool, rpcclient version upgrade 2016-05-31 20:57:56 +02:00
DanB
d7f2330c6b New config options: httpposter_attempts, connect_timeout, reply_timeout, locking_timeout, fix connection drop detection in case of HA 2016-05-30 21:13:42 +02:00
DanB
8384f763a5 Connection pool update, allowed errors per connection if at least one connection up, updated tests and glide.lock 2016-05-15 21:12:44 +02:00
DanB
bd619afdd0 Various fixes 2016-04-24 20:47:18 +02:00
DanB
0cdc986163 Fix build on hapool 2016-04-22 17:00:05 +02:00
DanB
31456e2a9c Fix merge conflicts, improving creation of new rpc pool 2016-03-24 09:18:38 +01:00