Replaced TenantIDWithOpts with TenantIDWithAPIOpts

This commit is contained in:
andronache
2021-03-17 16:51:14 +02:00
committed by Dan Christian Bogos
parent 8b0748b139
commit a6f41adaf9
105 changed files with 943 additions and 943 deletions

View File

@@ -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,

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",