mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Implement rpc exporter
This commit is contained in:
committed by
Dan Christian Bogos
parent
f204d474bd
commit
14dfda53be
@@ -311,6 +311,7 @@ const (
|
||||
MetaAMQPjsonCDR = "*amqp_json_cdr"
|
||||
MetaAMQPjsonMap = "*amqp_json_map"
|
||||
MetaAMQPV1jsonMap = "*amqpv1_json_map"
|
||||
MetaRPC = "*rpc"
|
||||
MetaSQSjsonMap = "*sqs_json_map"
|
||||
MetaKafkajsonMap = "*kafka_json_map"
|
||||
MetaNatsjsonMap = "*nats_json_map"
|
||||
@@ -2602,6 +2603,7 @@ const (
|
||||
ElsVersionLow = "elsVersion"
|
||||
ElsVersionType = "elsVersionType"
|
||||
ElsWaitForActiveShards = "elsWaitForActiveShards"
|
||||
|
||||
// nats
|
||||
NatsSubject = "natsSubject"
|
||||
NatsQueueID = "natsQueueID"
|
||||
@@ -2614,6 +2616,17 @@ const (
|
||||
NatsJetStream = "natsJetStream"
|
||||
NatsJetStreamMaxWait = "natsJetStreamMaxWait"
|
||||
|
||||
// rpc
|
||||
RpcCodec = "rpcCodec"
|
||||
ServiceMethod = "serviceMethod"
|
||||
KeyPath = "keyPath"
|
||||
CertPath = "certPath"
|
||||
CaPath = "caPath"
|
||||
Tls = "tls"
|
||||
ConnIDs = "connIDs"
|
||||
RpcConnTimeout = "rpcConnTimeout"
|
||||
RpcReplyTimeout = "rpcReplyTimeout"
|
||||
|
||||
// processed opts
|
||||
AMQPQueueIDProcessedCfg = "amqpQueueIDProcessed"
|
||||
AMQPExchangeProcessedCfg = "amqpExchangeProcessed"
|
||||
|
||||
@@ -535,6 +535,10 @@ func DurationPointer(d time.Duration) *time.Duration {
|
||||
return &d
|
||||
}
|
||||
|
||||
func SliceStringPointer(d []string) *[]string {
|
||||
return &d
|
||||
}
|
||||
|
||||
func ToIJSON(v interface{}) string {
|
||||
b, _ := json.MarshalIndent(v, "", " ")
|
||||
return string(b)
|
||||
|
||||
Reference in New Issue
Block a user