mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 18:46:24 +05:00
Adding some formatting
This commit is contained in:
@@ -21,8 +21,8 @@ package apier
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
// Creates a new ActionTimings profile within a tariff plan
|
||||
@@ -44,10 +44,10 @@ func (self *Apier) SetTPActionTimings(attrs utils.ApiTPActionTimings, reply *str
|
||||
ats := make([]*engine.ActionTiming, len(attrs.ActionTimings))
|
||||
for idx, at := range attrs.ActionTimings {
|
||||
ats[idx] = &engine.ActionTiming{
|
||||
Tag: attrs.ActionTimingsId,
|
||||
ActionsTag: at.ActionsId,
|
||||
TimingsTag: at.TimingId,
|
||||
Weight: at.Weight,
|
||||
Tag: attrs.ActionTimingsId,
|
||||
ActionsTag: at.ActionsId,
|
||||
TimingsTag: at.TimingId,
|
||||
Weight: at.Weight,
|
||||
}
|
||||
}
|
||||
if err := self.StorDb.SetTPActionTimings(attrs.TPid, map[string][]*engine.ActionTiming{attrs.ActionTimingsId: ats}); err != nil {
|
||||
|
||||
@@ -82,7 +82,7 @@ func (self *Apier) GetTPActionTriggers(attrs AttrGetTPActionTriggers, reply *uti
|
||||
aTriggers := make([]utils.ApiActionTrigger, len(ats[attrs.ActionTriggersId]))
|
||||
for idx, row := range ats[attrs.ActionTriggersId] {
|
||||
aTriggers[idx] = utils.ApiActionTrigger{
|
||||
BalanceType: row.BalanceId,
|
||||
BalanceType: row.BalanceId,
|
||||
Direction: row.Direction,
|
||||
ThresholdType: row.ThresholdType,
|
||||
ThresholdValue: row.ThresholdValue,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -64,7 +64,7 @@ type CGRConfig struct {
|
||||
BalancerEnabled bool
|
||||
BalancerListen string // Json RPC server address
|
||||
SchedulerEnabled bool
|
||||
CDRSEnabled bool // Enable CDR Server service
|
||||
CDRSEnabled bool // Enable CDR Server service
|
||||
CDRSListen string // CDRS's listening interface: <x.y.z.y:1234>.
|
||||
CDRSfsJSONEnabled bool // Enable the handler for FreeSWITCH JSON CDRs: <enabled|disabled>.
|
||||
CDRSgenJSONEnabled bool // Enable the handler for Generic JSON CDRs: <enabled|disabled>.
|
||||
|
||||
@@ -29,8 +29,8 @@ const (
|
||||
TBL_TP_ACTION_TIMINGS = "tp_action_timings"
|
||||
TBL_TP_ACTION_TRIGGERS = "tp_action_triggers"
|
||||
TBL_TP_ACCOUNT_ACTIONS = "tp_account_actions"
|
||||
TBL_COST_DETAILS = "cost_details"
|
||||
TBL_RATED_CDRS = "rated_cdrs"
|
||||
TBL_COST_DETAILS = "cost_details"
|
||||
TBL_RATED_CDRS = "rated_cdrs"
|
||||
TIMINGS_CSV = "Timings.csv"
|
||||
DESTINATIONS_CSV = "Destinations.csv"
|
||||
RATES_CSV = "Rates.csv"
|
||||
|
||||
Reference in New Issue
Block a user