mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Replaced TenantIDWithOpts with TenantIDWithAPIOpts
This commit is contained in:
committed by
Dan Christian Bogos
parent
8b0748b139
commit
a6f41adaf9
@@ -79,7 +79,7 @@ var (
|
||||
err error
|
||||
)
|
||||
|
||||
func durInternalRater(cd *engine.CallDescriptorWithOpts) (time.Duration, error) {
|
||||
func durInternalRater(cd *engine.CallDescriptorWithAPIOpts) (time.Duration, error) {
|
||||
dbConn, err := engine.NewDataDBConn(tstCfg.DataDbCfg().Type,
|
||||
tstCfg.DataDbCfg().Host, tstCfg.DataDbCfg().Port,
|
||||
tstCfg.DataDbCfg().Name, tstCfg.DataDbCfg().User,
|
||||
@@ -120,7 +120,7 @@ func durInternalRater(cd *engine.CallDescriptorWithOpts) (time.Duration, error)
|
||||
return time.Since(start), nil
|
||||
}
|
||||
|
||||
func durRemoteRater(cd *engine.CallDescriptorWithOpts) (time.Duration, error) {
|
||||
func durRemoteRater(cd *engine.CallDescriptorWithAPIOpts) (time.Duration, error) {
|
||||
result := engine.CallCost{}
|
||||
var client *rpc.Client
|
||||
var err error
|
||||
@@ -243,7 +243,7 @@ func main() {
|
||||
tstart := time.Now()
|
||||
timeparsed, err = utils.ParseDurationWithNanosecs(*usage)
|
||||
tend := tstart.Add(timeparsed)
|
||||
cd := &engine.CallDescriptorWithOpts{
|
||||
cd := &engine.CallDescriptorWithAPIOpts{
|
||||
CallDescriptor: &engine.CallDescriptor{
|
||||
TimeStart: tstart,
|
||||
TimeEnd: tend,
|
||||
|
||||
@@ -101,7 +101,7 @@ func main() {
|
||||
go func() {
|
||||
tStart := time.Date(2016, 3, 31, 0, 0, 0, 0, time.UTC)
|
||||
usageDur, _ := utils.ParseDurationWithNanosecs(usage)
|
||||
cd := &engine.CallDescriptorWithOpts{
|
||||
cd := &engine.CallDescriptorWithAPIOpts{
|
||||
CallDescriptor: &engine.CallDescriptor{
|
||||
Category: "call",
|
||||
Tenant: "cgrates.org",
|
||||
|
||||
@@ -101,7 +101,7 @@ func main() {
|
||||
go func() {
|
||||
tStart := time.Date(2016, 3, 31, 0, 0, 0, 0, time.UTC)
|
||||
usageDur, _ := utils.ParseDurationWithNanosecs(usage)
|
||||
cd := &engine.CallDescriptorWithOpts{
|
||||
cd := &engine.CallDescriptorWithAPIOpts{
|
||||
CallDescriptor: &engine.CallDescriptor{
|
||||
Category: "call",
|
||||
Tenant: "cgrates.org",
|
||||
|
||||
@@ -98,7 +98,7 @@ func main() {
|
||||
go func() {
|
||||
tStart := time.Date(2016, 3, 31, 0, 0, 0, 0, time.UTC)
|
||||
usageDur, _ := utils.ParseDurationWithNanosecs(usage)
|
||||
cd := &engine.CallDescriptorWithOpts{
|
||||
cd := &engine.CallDescriptorWithAPIOpts{
|
||||
CallDescriptor: &engine.CallDescriptor{
|
||||
Category: "call",
|
||||
Tenant: "cgrates.org",
|
||||
|
||||
Reference in New Issue
Block a user