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
b4fe82c6d7
Updated rpcclient library
2019-12-09 18:04:26 +02:00
adragusin
bf19cfe7ae
Updated tests in utils
2019-12-04 10:36:26 -05:00
TeoV
bd76b55ac5
Add reply_timeout flag for cgr-console
2019-09-24 12:39:27 +02:00
Tripon Alexandru-Ionut
e994711d73
Prettify duration in cgr-console. Fixes#432
2019-06-21 15:35:01 +02:00
Tripon Alexandru-Ionut
c75482a6dc
Updated RemoteHost structure
2019-04-01 18:37:40 +02:00
TeoV
c6ede2898e
Review cgr-console to work in batch mode
2019-03-07 09:52:22 +01:00
TeoV
f115cf77ef
Add FlagSet for each component
2019-03-06 14:20:50 +01:00
Trial97
768cf3b930
cgr-console handle correctly the rpcEncoding
2018-11-27 14:53:55 +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
a370f8ed7c
Rename script and update variable names in cgr-console
2018-06-05 14:44:24 +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
43a979eb12
Move certificate into data/tls
2018-06-04 16:30:50 +03:00
TeoV
e8827a2d69
Update glide.lock with new rpcclient version
2018-06-04 11:25:29 +03:00
TeoV
67c7ef6235
Repove unnecesary parameter
2018-06-04 11:25:29 +03:00
TeoV
7bd6c5841c
Update TLS connection
2018-06-04 11:25:29 +03:00
TeoV
c143488ecb
Add new subsystems to dispatcher and use const in some console commands
2018-06-04 11:25:29 +03:00
TeoV
c0721295c9
Add TLS Authentification
2018-06-04 11:25:29 +03:00
Anevo
0fe58993e8
Renamed lower service names, renamed LoaderConfig to LoaderSConfig, added configuration file and test for cgr-loader
2018-04-25 16:52:46 +02:00
edwardro22
b651b06826
Removed copyright from go doc
2017-09-10 15:02:46 +00:00
DanB
d200708083
Adding git hash to version of the binaries
2017-01-02 14:41:31 +01: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
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
b160557d63
Support for internal RPC within rpc client
2015-11-14 12:28:39 +01:00
Radu Ioan Fericean
95a091f936
started using glide for vendor packages
2015-09-17 13:25:30 +03:00
Radu Ioan Fericean
20ed3ea34f
simplified pubsub event
2015-07-27 22:13:40 +03:00
Radu Ioan Fericean
e95b2be88d
simpler console command interface
2015-07-14 23:38:39 +03:00
Radu Ioan Fericean
3b14b399cb
fixes for user indexes
...
tests pending
2015-07-13 17:33:00 +03:00
Radu Ioan Fericean
7b1b8cac63
better console commands and added user_indexes command
2015-07-13 17:33:00 +03:00
Radu Ioan Fericean
8f7e3efd61
refactored server starting and added configs
2015-07-10 19:01:08 +03:00
Radu Ioan Fericean
0168cd3cf7
fix for console josn Marshall issue
2015-06-15 11:29:35 +03:00
Radu Ioan Fericean
188ff2010c
fix console crash when it cannot connect
2015-04-22 19:16:41 +03:00
DanB
ff74c7c1fa
Automatic console reconnects
2015-04-15 20:32:16 +02:00
Radu Ioan Fericean
bf0ac94a8d
updated copyright info
2015-03-11 19:49:52 +02:00
Radu Ioan Fericean
1c16419bb3
more go vet
2015-02-05 23:20:50 +02:00
Radu Ioan Fericean
5e7eec3685
updated copyright year
2014-11-27 21:27:00 +02:00
Radu Ioan Fericean
362f34fe21
added parse command
2014-07-17 14:11:13 +03:00
Radu Ioan Fericean
ec66859d34
console results fix
2014-05-12 18:44:22 +03:00
Radu Ioan Fericean
5bd0816596
using cgrates own branch for liner
2014-04-27 15:24:40 +03:00
Radu Ioan Fericean
a365e90c1d
switched to peterh liner and fixed commands
2014-04-27 00:41:34 +03:00
Radu Ioan Fericean
2d042d65bf
ignore empty commands (enter enter)
2014-04-21 19:12:38 +03:00
Radu Ioan Fericean
0122acced1
use string wrapper for string param commands
2014-04-19 11:48:05 +03:00
Radu Ioan Fericean
bcb9582d6b
more commands and help
2014-04-18 23:03:51 +03:00
Radu Ioan Fericean
2da2294c0f
add_balance
2014-04-17 16:59:17 +03:00
Radu Ioan Fericean
0192e5088f
using rif's liner fork
2014-04-17 15:37:26 +03:00
Radu Ioan Fericean
81b611f186
first (somehow) working version
2014-04-16 22:22:17 +03:00
Radu Ioan Fericean
490e8043d6
more indenting
2013-11-29 19:17:14 +02:00
Radu Ioan Fericean
69200d00e8
format console api command response
2013-11-29 19:02:47 +02:00