mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
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.
79 lines
3.2 KiB
Modula-2
79 lines
3.2 KiB
Modula-2
module github.com/cgrates/cgrates
|
|
|
|
go 1.20
|
|
|
|
// replace github.com/cgrates/radigo => /home/dan/go/src/github.com/cgrates/radigo
|
|
// replace github.com/cgrates/rpcclient => ../rpcclient
|
|
|
|
require (
|
|
github.com/antchfx/xmlquery v1.3.15
|
|
github.com/aws/aws-sdk-go v1.44.230
|
|
github.com/cenkalti/rpc2 v0.0.0-20210604223624-c1acbc6ec984
|
|
github.com/cgrates/aringo v0.0.0-20220525160735-b5990313d99e
|
|
github.com/cgrates/fsock v0.0.0-20230123160954-12cae14030cc
|
|
github.com/cgrates/kamevapi v0.0.0-20220525160402-5b8036487a6c
|
|
github.com/cgrates/ltcache v0.0.0-20210405185848-da943e80c1ab
|
|
github.com/cgrates/radigo v0.0.0-20210902121842-ea2f9a730627
|
|
github.com/cgrates/rpcclient v0.0.0-20220922181803-b3ddc74ad65a
|
|
github.com/creack/pty v1.1.18
|
|
github.com/fiorix/go-diameter v3.0.3-0.20190716165154-f4823472d0e0+incompatible
|
|
github.com/fsnotify/fsnotify v1.6.0
|
|
github.com/go-sql-driver/mysql v1.7.0
|
|
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75
|
|
github.com/jinzhu/gorm v1.9.16
|
|
github.com/lib/pq v1.10.7
|
|
github.com/mediocregopher/radix.v2 v0.0.0-20181115013041-b67df6e626f9
|
|
github.com/miekg/dns v1.1.52
|
|
github.com/mitchellh/mapstructure v1.5.0
|
|
github.com/nyaruka/phonenumbers v1.1.6
|
|
github.com/peterh/liner v1.2.2
|
|
github.com/segmentio/kafka-go v0.4.39
|
|
github.com/ugorji/go/codec v1.2.11
|
|
go.mongodb.org/mongo-driver v1.11.3
|
|
golang.org/x/net v0.8.0
|
|
golang.org/x/oauth2 v0.6.0
|
|
google.golang.org/api v0.114.0
|
|
)
|
|
|
|
require github.com/Azure/go-amqp v0.18.1
|
|
|
|
require github.com/cgrates/birpc v1.3.1-0.20211117095917-5b0ff29f3084
|
|
|
|
require (
|
|
cloud.google.com/go/compute v1.19.0 // indirect
|
|
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
|
github.com/antchfx/xpath v1.2.4 // indirect
|
|
github.com/cenkalti/hub v1.0.1 // indirect
|
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/uuid v1.3.0 // indirect
|
|
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
|
|
github.com/googleapis/gax-go/v2 v2.8.0 // indirect
|
|
github.com/ishidawataru/sctp v0.0.0-20230328010247-a8b5b9ef884c // indirect
|
|
github.com/jinzhu/inflection v1.0.0 // indirect
|
|
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
|
github.com/klauspost/compress v1.16.3 // indirect
|
|
github.com/mattn/go-runewidth v0.0.14 // indirect
|
|
github.com/montanaflynn/stats v0.7.0 // indirect
|
|
github.com/pierrec/lz4/v4 v4.1.17 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/rabbitmq/amqp091-go v1.8.0
|
|
github.com/rivo/uniseg v0.4.4 // indirect
|
|
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
|
|
github.com/xdg-go/scram v1.1.2 // indirect
|
|
github.com/xdg-go/stringprep v1.0.4 // indirect
|
|
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect
|
|
go.opencensus.io v0.24.0 // indirect
|
|
golang.org/x/crypto v0.7.0 // indirect
|
|
golang.org/x/mod v0.9.0 // indirect
|
|
golang.org/x/sync v0.1.0 // indirect
|
|
golang.org/x/sys v0.6.0 // indirect
|
|
golang.org/x/text v0.8.0 // indirect
|
|
golang.org/x/tools v0.7.0 // indirect
|
|
google.golang.org/appengine v1.6.7 // indirect
|
|
google.golang.org/genproto v0.0.0-20230327215041-6ac7f18bb9d5 // indirect
|
|
google.golang.org/grpc v1.54.0 // indirect
|
|
google.golang.org/protobuf v1.30.0 // indirect
|
|
)
|