Documentation
¶
Overview ¶
Real-time Online/Offline Charging System (OCS) for Telecom & ISP environments Copyright (C) ITsysCOM GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>
Index ¶
- Constants
- Variables
- func CachedDestHasPrefix(destId, prefix string) bool
- func CallScript(scriptPath string, subcommand string, waitMs int) error
- func CheckVersions(storage Storage) error
- func FilterToTPFilter(f *Filter) (tpFltr *utils.TPFilterProfile)
- func ForceKillProcName(procName string, waitMs int) error
- func GetDefaultEmptyCacheStats() map[string]*ltcache.CacheStats
- func HttpJsonPost(url string, skipTLSVerify bool, content []byte) (respBody []byte, err error)
- func InitCache(cfg config.CacheCfg)
- func InitDataDb(cfg *config.CGRConfig) error
- func InitStorDb(cfg *config.CGRConfig) error
- func KillEngine(waitEngine int) error
- func KillProcName(procName string, waitMs int) error
- func LoadTariffPlanFromFolder(tpPath, timezone string, dm *DataManager, disable_reverse bool, ...) error
- func MapTPAccountActions(s []*utils.TPAccountActions) (map[string]*utils.TPAccountActions, error)
- func MapTPActionTimings(s []*utils.TPActionPlan) map[string][]*utils.TPActionTiming
- func MapTPActionTriggers(s []*utils.TPActionTriggers) map[string][]*utils.TPActionTrigger
- func MapTPActions(s []*utils.TPActions) map[string][]*utils.TPAction
- func MapTPDestinationRates(s []*utils.TPDestinationRate) (map[string]*utils.TPDestinationRate, error)
- func MapTPRates(s []*utils.TPRate) (map[string]*utils.TPRate, error)
- func MapTPRatingPlanBindings(s []*utils.TPRatingPlan) map[string][]*utils.TPRatingPlanBinding
- func MapTPRatingProfiles(s []*utils.TPRatingProfile) (map[string]*utils.TPRatingProfile, error)
- func MapTPSharedGroup(s []*utils.TPSharedGroups) map[string][]*utils.TPSharedGroup
- func MapTPTimings(tps []*utils.ApierTPTiming) (map[string]*utils.TPTiming, error)
- func MatchingItemIDsForEvent(ev map[string]interface{}, stringFldIDs, prefixFldIDs *[]string, ...) (itemIDs utils.StringMap, err error)
- func NewCsvFile() csvReaderCloser
- func NewCsvString() csvReaderCloser
- func NewRPCPool(dispatchStrategy string, keyPath, certPath, caPath string, ...) (*rpcclient.RPCPool, error)
- func OverwriteDBVersions(storage Storage) (err error)
- func PjsuaCallUri(acnt *PjsuaAccount, dstUri, outboundUri string, callDur time.Duration, ...) error
- func SetCdrStorage(cStorage CdrStorage)
- func SetConnManager(conMgr *ConnManager)
- func SetDBVersions(storage Storage) (err error)
- func SetDataStorage(dm2 *DataManager)
- func SetFailedPostCacheTTL(ttl time.Duration)
- func SetRoundingDecimals(rd int)
- func SetRpSubjectPrefixMatching(flag bool)
- func StartEngine(cfgPath string, waitEngine int) (*exec.Cmd, error)
- func StartPjsuaListener(acnts []*PjsuaAccount, localPort, waitDur time.Duration) (*os.File, error)
- func StopStartEngine(cfgPath string, waitEngine int) (*exec.Cmd, error)
- func SureTaxProcessCdr(cdr *CDR) error
- func TimeDecodeValue1(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
- type AMQPPoster
- type AMQPv1Poster
- type Account
- func (acc *Account) AsAccountSummary() *AccountSummary
- func (acc *Account) AsOldStructure() interface{}
- func (acc *Account) CleanExpiredStuff()
- func (acc *Account) Clone() *Account
- func (acc *Account) DebitConnectionFee(cc *CallCost, usefulMoneyBalances Balances, count bool, block bool) (bool, Balance)
- func (acc *Account) ExecuteActionTriggers(a *Action)
- func (acc *Account) GetBalanceWithID(blcType, blcID string) (blc *Balance)
- func (acc *Account) GetDefaultMoneyBalance() *Balance
- func (acc *Account) GetID() string
- func (acc *Account) GetSharedGroups() (groups []string)
- func (acc *Account) GetUniqueSharedGroupMembers(cd *CallDescriptor) (utils.StringMap, error)
- func (acc *Account) InitCounters()
- func (acc *Account) Publish()
- func (acc *Account) ResetActionTriggers(a *Action)
- func (acc *Account) SetRecurrent(a *Action, recurrent bool)
- type AccountSummary
- type Accounting
- type Action
- type ActionPlan
- type ActionTiming
- func (at *ActionTiming) Clone() (cln *ActionTiming)
- func (at *ActionTiming) Execute(successActions, failedActions chan *Action) (err error)
- func (at *ActionTiming) GetAccountIDs() utils.StringMap
- func (at *ActionTiming) GetActionPlanID() string
- func (at *ActionTiming) GetNextStartTime(now time.Time) (t time.Time)
- func (at *ActionTiming) GetNextStartTimeOld(now time.Time) (t time.Time)
- func (at *ActionTiming) IsASAP() bool
- func (at *ActionTiming) RemoveAccountID(acntID string) (found bool)
- func (at *ActionTiming) ResetStartTimeCache()
- func (at *ActionTiming) SetAccountIDs(accIDs utils.StringMap)
- func (at *ActionTiming) SetActionPlanID(id string)
- func (at *ActionTiming) SetActions(as Actions)
- func (at *ActionTiming) Tasks() (tsks []*Task)
- type ActionTimingPriorityList
- type ActionTimingWeightOnlyPriorityList
- type ActionTrigger
- func (at *ActionTrigger) Clone() *ActionTrigger
- func (at *ActionTrigger) CreateBalance() *Balance
- func (at *ActionTrigger) Equals(oat *ActionTrigger) bool
- func (at *ActionTrigger) Execute(ub *Account) (err error)
- func (at *ActionTrigger) IsActive(t time.Time) bool
- func (at *ActionTrigger) IsExpired(t time.Time) bool
- func (at *ActionTrigger) Match(a *Action) bool
- type ActionTriggers
- type Actions
- type ArgRateCDRs
- type ArgV1ProcessEvent
- type ArgsGetSuppliers
- type ArgsProcessEvent
- type ArgsV2CDRSStoreSMCost
- type AttrArgsProcessEvent
- type AttrCDRSStoreSMCost
- type AttrSProcessEventReply
- type Attribute
- type AttributeProfile
- type AttributeProfiles
- type AttributeService
- func (alS *AttributeService) ListenAndServe(exitChan chan bool) (err error)
- func (alS *AttributeService) Shutdown() (err error)
- func (alS *AttributeService) V1GetAttributeForEvent(args *AttrArgsProcessEvent, attrPrfl *AttributeProfile) (err error)
- func (alS *AttributeService) V1ProcessEvent(args *AttrArgsProcessEvent, reply *AttrSProcessEventReply) (err error)
- type BSONMarshaler
- type Balance
- func (b *Balance) AddValue(amount float64)
- func (b *Balance) AsBalanceSummary(typ string) *BalanceSummary
- func (b *Balance) Clone() *Balance
- func (b *Balance) Equal(o *Balance) bool
- func (b *Balance) GetCost(cd *CallDescriptor, getStandardIfEmpty bool) (*CallCost, error)
- func (b *Balance) GetMinutesForCredit(origCD *CallDescriptor, initialCredit float64) (duration time.Duration, credit float64)
- func (b *Balance) GetValue() float64
- func (b *Balance) HardMatchFilter(o *BalanceFilter, skipIds bool) bool
- func (b *Balance) HasDestination() bool
- func (b *Balance) IsActive() bool
- func (b *Balance) IsActiveAt(t time.Time) bool
- func (b *Balance) IsDefault() bool
- func (b *Balance) IsExpiredAt(t time.Time) bool
- func (b *Balance) MatchActionTrigger(at *ActionTrigger) bool
- func (b *Balance) MatchCategory(category string) bool
- func (b *Balance) MatchDestination(destinationID string) bool
- func (b *Balance) MatchFilter(o *BalanceFilter, skipIds, skipExpiry bool) bool
- func (b *Balance) Publish()
- func (b *Balance) SetDirty()
- func (b *Balance) SetValue(amount float64)
- func (b *Balance) SubstractValue(amount float64)
- type BalanceCharge
- type BalanceFilter
- func (bf *BalanceFilter) Clone() *BalanceFilter
- func (bp *BalanceFilter) CreateBalance() *Balance
- func (bp *BalanceFilter) EmptyExpirationDate() bool
- func (bp *BalanceFilter) Equal(o *BalanceFilter) bool
- func (bp *BalanceFilter) GetBlocker() bool
- func (bp *BalanceFilter) GetCategories() utils.StringMap
- func (bp *BalanceFilter) GetDestinationIDs() utils.StringMap
- func (bp *BalanceFilter) GetDisabled() bool
- func (bp *BalanceFilter) GetExpirationDate() time.Time
- func (bp *BalanceFilter) GetFactor() ValueFactor
- func (bp *BalanceFilter) GetID() string
- func (bp *BalanceFilter) GetRatingSubject() string
- func (bp *BalanceFilter) GetSharedGroups() utils.StringMap
- func (bp *BalanceFilter) GetTimingIDs() utils.StringMap
- func (bp *BalanceFilter) GetType() string
- func (bp *BalanceFilter) GetUuid() string
- func (bp *BalanceFilter) GetValue() float64
- func (bp *BalanceFilter) GetWeight() float64
- func (bf *BalanceFilter) LoadFromBalance(b *Balance) *BalanceFilter
- func (bf *BalanceFilter) ModifyBalance(b *Balance)
- func (bp *BalanceFilter) SetValue(v float64)
- type BalanceSummaries
- type BalanceSummary
- type Balances
- func (bc Balances) Clone() Balances
- func (bc Balances) Equal(o Balances) bool
- func (bc Balances) GetBalance(uuid string) *Balance
- func (bc Balances) GetTotalValue() (total float64)
- func (bc Balances) HasBalance(balance *Balance) bool
- func (bc Balances) Len() int
- func (bc Balances) Less(j, i int) bool
- func (bc Balances) SaveDirtyBalances(acc *Account)
- func (bc Balances) Sort()
- func (bc Balances) Swap(i, j int)
- type BincMarshaler
- type CDR
- func (cdr *CDR) AddDefaults(cfg *config.CGRConfig)
- func (cdr *CDR) AsCDRsql() (cdrSQL *CDRsql)
- func (cdr *CDR) AsCGREvent() *utils.CGREvent
- func (cdr *CDR) AsExportMap(exportFields []*config.FCTemplate, httpSkipTLSCheck bool, groupedCDRs []*CDR, ...) (expMap map[string]string, err error)
- func (cdr *CDR) AsExportRecord(exportFields []*config.FCTemplate, httpSkipTLSCheck bool, groupedCDRs []*CDR, ...) (expRecord []string, err error)
- func (cdr *CDR) AsExternalCDR() *ExternalCDR
- func (cdr *CDR) AsMapStringIface() (mp map[string]interface{})
- func (cdr *CDR) Clone() *CDR
- func (cdr *CDR) ComputeCGRID()
- func (cdr *CDR) CostDetailsJson() string
- func (cdr *CDR) FieldAsString(rsrPrs *config.RSRParser) (parsed string, err error)
- func (cdr *CDR) FieldsAsString(rsrFlds config.RSRParsers) string
- func (cdr *CDR) FormatCost(shiftDecimals, roundDecimals int) string
- func (cdr *CDR) String() string
- func (cdr *CDR) UpdateFromCGREvent(cgrEv *utils.CGREvent, fields []string) (err error)
- type CDRExporter
- func (cdre *CDRExporter) ExportCDRs() (err error)
- func (cdre *CDRExporter) FirstOrderID() int64
- func (cdre *CDRExporter) LastOrderID() int64
- func (cdre *CDRExporter) NegativeExports() map[string]string
- func (cdre *CDRExporter) PositiveExports() []string
- func (cdre *CDRExporter) TotalCost() float64
- func (cdre *CDRExporter) TotalExportedCdrs() int
- type CDRServer
- func (cdrS *CDRServer) Call(serviceMethod string, args interface{}, reply interface{}) error
- func (cdrS *CDRServer) ListenAndServe(stopChan chan struct{}) (err error)
- func (cdrS *CDRServer) RegisterHandlersToServer(server *utils.Server)
- func (cdrS *CDRServer) V1CountCDRs(args *utils.RPCCDRsFilterWithArgDispatcher, cnt *int64) error
- func (cdrS *CDRServer) V1GetCDRs(args utils.RPCCDRsFilterWithArgDispatcher, cdrs *[]*CDR) error
- func (cdrS *CDRServer) V1ProcessCDR(cdr *CDRWithArgDispatcher, reply *string) (err error)
- func (cdrS *CDRServer) V1ProcessEvent(arg *ArgV1ProcessEvent, reply *string) (err error)
- func (cdrS *CDRServer) V1ProcessExternalCDR(eCDR *ExternalCDRWithArgDispatcher, reply *string) error
- func (cdrS *CDRServer) V1RateCDRs(arg *ArgRateCDRs, reply *string) (err error)
- func (cdrS *CDRServer) V1StoreSessionCost(attr *AttrCDRSStoreSMCost, reply *string) (err error)
- func (cdrS *CDRServer) V2StoreSessionCost(args *ArgsV2CDRSStoreSMCost, reply *string) (err error)
- type CDRWithArgDispatcher
- type CDRsql
- type CGRSafEvent
- type CSVStorage
- func NewCSVStorage(sep rune, destinationsFn, timingsFn, ratesFn, destinationratesFn, ... []string) *CSVStorage
- func NewFileCSVStorage(sep rune, dataPath string, recursive bool) *CSVStorage
- func NewGoogleCSVStorage(sep rune, spreadsheetId, cfgPath string) (*CSVStorage, error)
- func NewStringCSVStorage(sep rune, destinationsFn, timingsFn, ratesFn, destinationratesFn, ... string) *CSVStorage
- func (csvs *CSVStorage) GetTPAccountActions(filter *utils.TPAccountActions) ([]*utils.TPAccountActions, error)
- func (csvs *CSVStorage) GetTPActionPlans(tpid, id string) ([]*utils.TPActionPlan, error)
- func (csvs *CSVStorage) GetTPActionTriggers(tpid, id string) ([]*utils.TPActionTriggers, error)
- func (csvs *CSVStorage) GetTPActions(tpid, id string) ([]*utils.TPActions, error)
- func (csvs *CSVStorage) GetTPAttributes(tpid, tenant, id string) ([]*utils.TPAttributeProfile, error)
- func (csvs *CSVStorage) GetTPChargers(tpid, tenant, id string) ([]*utils.TPChargerProfile, error)
- func (csvs *CSVStorage) GetTPDestinationRates(tpid, id string, p *utils.Paginator) ([]*utils.TPDestinationRate, error)
- func (csvs *CSVStorage) GetTPDestinations(tpid, id string) ([]*utils.TPDestination, error)
- func (csvs *CSVStorage) GetTPDispatcherHosts(tpid, tenant, id string) ([]*utils.TPDispatcherHost, error)
- func (csvs *CSVStorage) GetTPDispatcherProfiles(tpid, tenant, id string) ([]*utils.TPDispatcherProfile, error)
- func (csvs *CSVStorage) GetTPFilters(tpid, tenant, id string) ([]*utils.TPFilterProfile, error)
- func (csvs *CSVStorage) GetTPRates(tpid, id string) ([]*utils.TPRate, error)
- func (csvs *CSVStorage) GetTPRatingPlans(tpid, id string, p *utils.Paginator) ([]*utils.TPRatingPlan, error)
- func (csvs *CSVStorage) GetTPRatingProfiles(filter *utils.TPRatingProfile) ([]*utils.TPRatingProfile, error)
- func (csvs *CSVStorage) GetTPResources(tpid, tenant, id string) ([]*utils.TPResourceProfile, error)
- func (csvs *CSVStorage) GetTPSharedGroups(tpid, id string) ([]*utils.TPSharedGroups, error)
- func (csvs *CSVStorage) GetTPStats(tpid, tenant, id string) ([]*utils.TPStatProfile, error)
- func (csvs *CSVStorage) GetTPSuppliers(tpid, tenant, id string) ([]*utils.TPSupplierProfile, error)
- func (csvs *CSVStorage) GetTPThresholds(tpid, tenant, id string) ([]*utils.TPThresholdProfile, error)
- func (csvs *CSVStorage) GetTPTimings(tpid, id string) ([]*utils.ApierTPTiming, error)
- func (csvs *CSVStorage) GetTpIds(colName string) ([]string, error)
- func (csvs *CSVStorage) GetTpTableIds(tpid, table string, distinct utils.TPDistinctIds, filters map[string]string, ...) ([]string, error)
- type CacheS
- func (chS *CacheS) Call(serviceMethod string, args interface{}, reply interface{}) error
- func (chS *CacheS) GetPrecacheChannel(chID string) chan struct{}
- func (chS *CacheS) Precache() (err error)
- func (chS *CacheS) V1Clear(args *utils.AttrCacheIDsWithArgDispatcher, reply *string) (err error)
- func (chS *CacheS) V1FlushCache(args utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
- func (chS *CacheS) V1GetCacheStats(args *utils.AttrCacheIDsWithArgDispatcher, ...) (err error)
- func (chS *CacheS) V1GetGroupItemIDs(args *utils.ArgsGetGroupWithArgDispatcher, rply *[]string) (err error)
- func (chS *CacheS) V1GetItemExpiryTime(args *utils.ArgsGetCacheItemWithArgDispatcher, reply *time.Time) (err error)
- func (chS *CacheS) V1GetItemIDs(args *utils.ArgsGetCacheItemIDsWithArgDispatcher, reply *[]string) (err error)
- func (chS *CacheS) V1HasGroup(args *utils.ArgsGetGroupWithArgDispatcher, rply *bool) (err error)
- func (chS *CacheS) V1HasItem(args *utils.ArgsGetCacheItemWithArgDispatcher, reply *bool) (err error)
- func (chS *CacheS) V1LoadCache(args utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
- func (chS *CacheS) V1PrecacheStatus(args *utils.AttrCacheIDsWithArgDispatcher, rply *map[string]string) (err error)
- func (chS *CacheS) V1ReloadCache(attrs utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
- func (chS *CacheS) V1RemoveGroup(args *utils.ArgsGetGroupWithArgDispatcher, rply *string) (err error)
- func (chS *CacheS) V1RemoveItem(args *utils.ArgsGetCacheItemWithArgDispatcher, reply *string) (err error)
- type CallCost
- func (cc *CallCost) AsJSON() string
- func (cc *CallCost) CreateCallDescriptor() *CallDescriptor
- func (cc *CallCost) GetConnectFee() float64
- func (cc *CallCost) GetDuration() (td time.Duration)
- func (cc *CallCost) GetEndTime() time.Time
- func (cc *CallCost) GetLongestRounding() (roundingDecimals int, roundingMethod string)
- func (cc *CallCost) GetRoundIncrements() (roundIncrements Increments)
- func (cc *CallCost) GetStartTime() time.Time
- func (cc *CallCost) IsPaid() bool
- func (cc *CallCost) MatchCCFilter(bf *BalanceFilter) bool
- func (cc *CallCost) Merge(other *CallCost)
- func (cc *CallCost) Round()
- func (cc *CallCost) ToDataCost() (*DataCost, error)
- func (cc *CallCost) UpdateCost()
- func (cc *CallCost) UpdateRatedUsage() time.Duration
- type CallDescriptor
- func (cd *CallDescriptor) AccountSummary() *AccountSummary
- func (cd *CallDescriptor) AddRatingInfo(ris ...*RatingInfo)
- func (cd *CallDescriptor) AsCGREvent() *utils.CGREvent
- func (cd *CallDescriptor) Clone() *CallDescriptor
- func (cd *CallDescriptor) CreateCallCost() *CallCost
- func (cd *CallDescriptor) Debit() (cc *CallCost, err error)
- func (cd *CallDescriptor) FieldAsInterface(fldPath []string) (fldVal interface{}, err error)
- func (cd *CallDescriptor) FieldAsString(fldPath []string) (fldVal string, err error)
- func (cd *CallDescriptor) GetAccountKey() string
- func (cd *CallDescriptor) GetCost() (*CallCost, error)
- func (cd *CallDescriptor) GetDuration() time.Duration
- func (cd *CallDescriptor) GetKey(subject string) string
- func (cd *CallDescriptor) GetMaxSessionDuration() (duration time.Duration, err error)
- func (cd *CallDescriptor) LoadRatingPlans() (err error)
- func (cd *CallDescriptor) MaxDebit() (cc *CallCost, err error)
- func (cd *CallDescriptor) RefundIncrements() (acnt *Account, err error)
- func (cd *CallDescriptor) RefundRounding() (err error)
- func (cd *CallDescriptor) RemoteHost() net.Addr
- func (cd *CallDescriptor) String() string
- func (cd *CallDescriptor) UpdateFromCGREvent(cgrEv *utils.CGREvent, fields []string) (err error)
- func (cd *CallDescriptor) ValidateCallData() error
- type CallDescriptorWithArgDispatcher
- type CdrStorage
- type CgrCdr
- type ChargedRates
- type ChargedTiming
- type ChargedTimings
- type ChargerProfile
- type ChargerProfiles
- type ChargerService
- func (cS *ChargerService) ListenAndServe(exitChan chan bool) (err error)
- func (cS *ChargerService) Shutdown() (err error)
- func (cS *ChargerService) V1GetChargersForEvent(args *utils.CGREventWithArgDispatcher, rply *ChargerProfiles) (err error)
- func (cS *ChargerService) V1ProcessEvent(args *utils.CGREventWithArgDispatcher, reply *[]*ChrgSProcessEventReply) (err error)
- type ChargingIncrement
- func (cIt *ChargingIncrement) Clone() (cln *ChargingIncrement)
- func (cIt *ChargingIncrement) Equals(oCIt *ChargingIncrement) bool
- func (cIt *ChargingIncrement) FieldAsInterface(fldPath []string) (val interface{}, err error)
- func (cIt *ChargingIncrement) PartiallyEquals(oCIt *ChargingIncrement) bool
- func (cIt *ChargingIncrement) TotalCost() float64
- func (cIt *ChargingIncrement) TotalUsage() time.Duration
- type ChargingInterval
- func (cIl *ChargingInterval) Clone() (cln *ChargingInterval)
- func (cIl *ChargingInterval) Cost() float64
- func (cIl *ChargingInterval) EndTime(cIlST time.Time) (et time.Time)
- func (cIl *ChargingInterval) EventCostUsageIndex() *time.Duration
- func (cIl *ChargingInterval) PartiallyEquals(oCIl *ChargingInterval) bool
- func (cIl *ChargingInterval) StartTime(ecST time.Time) (st time.Time)
- func (cIl *ChargingInterval) TotalCost() float64
- func (cIl *ChargingInterval) TotalUsage() (tu *time.Duration)
- func (cIl *ChargingInterval) Usage() *time.Duration
- type ChrgSProcessEventReply
- type CodecMsgpackMarshaler
- type ConnManager
- type CoreService
- type CounterFilter
- type CounterFilters
- type DataCost
- type DataDB
- type DataIncrement
- type DataManager
- func (dm *DataManager) CacheDataFromDB(prfx string, ids []string, mustBeCached bool) (err error)
- func (dm *DataManager) DataDB() DataDB
- func (dm *DataManager) GetAccount(id string) (acc *Account, err error)
- func (dm *DataManager) GetAccountActionPlans(acntID string, skipCache bool, transactionID string) (apIDs []string, err error)
- func (dm *DataManager) GetActionPlan(key string, skipCache bool, transactionID string) (ats *ActionPlan, err error)
- func (dm *DataManager) GetActionTriggers(id string, skipCache bool, transactionID string) (attrs ActionTriggers, err error)
- func (dm *DataManager) GetActions(key string, skipCache bool, transactionID string) (as Actions, err error)
- func (dm *DataManager) GetAllActionPlans() (ats map[string]*ActionPlan, err error)
- func (dm *DataManager) GetAttributeProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (attrPrfl *AttributeProfile, err error)
- func (dm *DataManager) GetChargerProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (cpp *ChargerProfile, err error)
- func (dm *DataManager) GetDestination(key string, skipCache bool, transactionID string) (dest *Destination, err error)
- func (dm *DataManager) GetDispatcherHost(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (dH *DispatcherHost, err error)
- func (dm *DataManager) GetDispatcherProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (dpp *DispatcherProfile, err error)
- func (dm *DataManager) GetFilterIndexes(cacheID, itemIDPrefix, filterType string, fldNameVal map[string]string) (indexes map[string]utils.StringMap, err error)
- func (dm *DataManager) GetItemLoadIDs(itemIDPrefix string, cacheWrite bool) (loadIDs map[string]int64, err error)
- func (dm *DataManager) GetRatingPlan(key string, skipCache bool, transactionID string) (rp *RatingPlan, err error)
- func (dm *DataManager) GetRatingProfile(key string, skipCache bool, transactionID string) (rpf *RatingProfile, err error)
- func (dm *DataManager) GetResource(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (rs *Resource, err error)
- func (dm *DataManager) GetResourceProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (rp *ResourceProfile, err error)
- func (dm *DataManager) GetReverseDestination(prefix string, skipCache bool, transactionID string) (ids []string, err error)
- func (dm *DataManager) GetSharedGroup(key string, skipCache bool, transactionID string) (sg *SharedGroup, err error)
- func (dm *DataManager) GetStatQueue(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (sq *StatQueue, err error)
- func (dm *DataManager) GetStatQueueProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (sqp *StatQueueProfile, err error)
- func (dm *DataManager) GetSupplierProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (supp *SupplierProfile, err error)
- func (dm *DataManager) GetThreshold(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (th *Threshold, err error)
- func (dm *DataManager) GetThresholdProfile(tenant, id string, cacheRead, cacheWrite bool, transactionID string) (th *ThresholdProfile, err error)
- func (dm *DataManager) GetTiming(id string, skipCache bool, transactionID string) (t *utils.TPTiming, err error)
- func (dm *DataManager) HasData(category, subject, tenant string) (has bool, err error)
- func (dm *DataManager) LoadDataDBCache(...) (err error)
- func (dm *DataManager) MatchFilterIndex(cacheID, itemIDPrefix, filterType, fieldName, fieldVal string) (itemIDs utils.StringMap, err error)
- func (dm *DataManager) MatchFilterIndexFromKey(cacheID, key string) (err error)
- func (dm *DataManager) PreloadCacheForPrefix(prefix string) error
- func (dm *DataManager) Reconnect(marshaller string, newcfg *config.DataDbCfg) (err error)
- func (dm *DataManager) RemAccountActionPlans(acntID string, apIDs []string) (err error)
- func (dm *DataManager) RemoveAccount(id string) (err error)
- func (dm *DataManager) RemoveActionPlan(key string, transactionID string) (err error)
- func (dm *DataManager) RemoveActionTriggers(id, transactionID string) (err error)
- func (dm *DataManager) RemoveActions(key, transactionID string) (err error)
- func (dm *DataManager) RemoveAttributeProfile(tenant, id string, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveChargerProfile(tenant, id string, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveDestination(destID string, transactionID string) (err error)
- func (dm *DataManager) RemoveDispatcherHost(tenant, id string, transactionID string) (err error)
- func (dm *DataManager) RemoveDispatcherProfile(tenant, id string, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveFilter(tenant, id, transactionID string) (err error)
- func (dm *DataManager) RemoveFilterIndexes(cacheID, itemIDPrefix string) (err error)
- func (dm *DataManager) RemoveRatingPlan(key string, transactionID string) (err error)
- func (dm *DataManager) RemoveRatingProfile(key string, transactionID string) (err error)
- func (dm *DataManager) RemoveResource(tenant, id, transactionID string) (err error)
- func (dm *DataManager) RemoveResourceProfile(tenant, id, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveSharedGroup(id, transactionID string) (err error)
- func (dm *DataManager) RemoveStatQueue(tenant, id string, transactionID string) (err error)
- func (dm *DataManager) RemoveStatQueueProfile(tenant, id, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveSupplierProfile(tenant, id, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveThreshold(tenant, id, transactionID string) (err error)
- func (dm *DataManager) RemoveThresholdProfile(tenant, id, transactionID string, withIndex bool) (err error)
- func (dm *DataManager) RemoveTiming(id, transactionID string) (err error)
- func (dm *DataManager) SetAccount(acc *Account) (err error)
- func (dm *DataManager) SetAccountActionPlans(acntID string, aPlIDs []string, overwrite bool) (err error)
- func (dm *DataManager) SetActionPlan(key string, ats *ActionPlan, overwrite bool, transactionID string) (err error)
- func (dm *DataManager) SetActionTriggers(key string, attr ActionTriggers, transactionID string) (err error)
- func (dm *DataManager) SetActions(key string, as Actions, transactionID string) (err error)
- func (dm *DataManager) SetAttributeProfile(ap *AttributeProfile, withIndex bool) (err error)
- func (dm *DataManager) SetChargerProfile(cpp *ChargerProfile, withIndex bool) (err error)
- func (dm *DataManager) SetDestination(dest *Destination, transactionID string) (err error)
- func (dm *DataManager) SetDispatcherHost(dpp *DispatcherHost) (err error)
- func (dm *DataManager) SetDispatcherProfile(dpp *DispatcherProfile, withIndex bool) (err error)
- func (dm *DataManager) SetFilter(fltr *Filter) (err error)
- func (dm *DataManager) SetFilterIndexes(cacheID, itemIDPrefix string, indexes map[string]utils.StringMap, commit bool, ...) (err error)
- func (dm *DataManager) SetLoadIDs(loadIDs map[string]int64) (err error)
- func (dm *DataManager) SetRatingPlan(rp *RatingPlan, transactionID string) (err error)
- func (dm *DataManager) SetRatingProfile(rpf *RatingProfile, transactionID string) (err error)
- func (dm *DataManager) SetResource(rs *Resource) (err error)
- func (dm *DataManager) SetResourceProfile(rp *ResourceProfile, withIndex bool) (err error)
- func (dm *DataManager) SetReverseDestination(dest *Destination, transactionID string) (err error)
- func (dm *DataManager) SetSharedGroup(sg *SharedGroup, transactionID string) (err error)
- func (dm *DataManager) SetStatQueue(sq *StatQueue) (err error)
- func (dm *DataManager) SetStatQueueProfile(sqp *StatQueueProfile, withIndex bool) (err error)
- func (dm *DataManager) SetSupplierProfile(supp *SupplierProfile, withIndex bool) (err error)
- func (dm *DataManager) SetThreshold(th *Threshold) (err error)
- func (dm *DataManager) SetThresholdProfile(th *ThresholdProfile, withIndex bool) (err error)
- func (dm *DataManager) SetTiming(t *utils.TPTiming) (err error)
- func (dm *DataManager) UpdateReverseDestination(oldDest, newDest *Destination, transactionID string) error
- type DataSpan
- type DebitInfo
- type Destination
- type DispatcherHost
- type DispatcherHostProfile
- type DispatcherHostProfiles
- type DispatcherProfile
- type DispatcherProfiles
- type DurationWithCompress
- type EventCost
- func (ec *EventCost) AsCallCost(tor string) *CallCost
- func (ec *EventCost) AsRefundIncrements(tor string) (cd *CallDescriptor)
- func (ec *EventCost) Clone() (cln *EventCost)
- func (ec *EventCost) Compute()
- func (ec *EventCost) ComputeEventCostUsageIndexes()
- func (ec *EventCost) FieldAsInterface(fldPath []string) (val interface{}, err error)
- func (ec *EventCost) FieldAsString(fldPath []string) (string, error)
- func (ec *EventCost) GetCost() float64
- func (ec *EventCost) GetUsage() time.Duration
- func (ec *EventCost) Merge(ecs ...*EventCost)
- func (ec *EventCost) RemoteHost() net.Addr
- func (ec *EventCost) RemoveStaleReferences()
- func (ec *EventCost) ResetCounters()
- func (ec *EventCost) String() string
- func (ec *EventCost) SyncKeys(refEC *EventCost)
- func (ec *EventCost) Trim(atUsage time.Duration) (srplusEC *EventCost, err error)
- type ExportEvents
- func (expEv *ExportEvents) AddEvent(ev interface{})
- func (expEv *ExportEvents) FileName() string
- func (expEv *ExportEvents) ReplayFailedPosts(attempts int) (failedEvents *ExportEvents, err error)
- func (expEv *ExportEvents) SetModule(mod string)
- func (expEv *ExportEvents) WriteToFile(filePath string) (err error)
- type ExternalAttribute
- type ExternalAttributeProfile
- type ExternalCDR
- type ExternalCDRWithArgDispatcher
- type FSCdr
- type Filter
- type FilterIndexer
- type FilterRule
- type FilterS
- type GOBMarshaler
- type HTTPPoster
- type HighestBalancesSorter
- type HightCostSorter
- type Increment
- type Increments
- func (incs Increments) Clone() (cln Increments)
- func (incs *Increments) Compress()
- func (incs *Increments) Decompress()
- func (incs Increments) Equal(other Increments) bool
- func (incs Increments) GetTotalCost() float64
- func (incs Increments) Length() (length int)
- func (incs Increments) SharingSignature(other Increments) bool
- type InternalDB
- func (iDB *InternalDB) AddLoadHistory(*utils.LoadInstance, int, string) error
- func (iDB *InternalDB) Close()
- func (iDB *InternalDB) Flush(_ string) error
- func (iDB *InternalDB) GetAccountActionPlansDrv(acntID string, skipCache bool, transactionID string) (apIDs []string, err error)
- func (iDB *InternalDB) GetAccountDrv(id string) (acc *Account, err error)
- func (iDB *InternalDB) GetActionPlanDrv(key string, skipCache bool, transactionID string) (ats *ActionPlan, err error)
- func (iDB *InternalDB) GetActionTriggersDrv(id string) (at ActionTriggers, err error)
- func (iDB *InternalDB) GetActionsDrv(id string) (acts Actions, err error)
- func (iDB *InternalDB) GetAllActionPlansDrv() (ats map[string]*ActionPlan, err error)
- func (iDB *InternalDB) GetAttributeProfileDrv(tenant, id string) (attr *AttributeProfile, err error)
- func (iDB *InternalDB) GetCDRs(filter *utils.CDRsFilter, remove bool) (cdrs []*CDR, count int64, err error)
- func (iDB *InternalDB) GetChargerProfileDrv(tenant, id string) (ch *ChargerProfile, err error)
- func (iDB *InternalDB) GetDestinationDrv(key string, skipCache bool, transactionID string) (dest *Destination, err error)
- func (iDB *InternalDB) GetDispatcherHostDrv(tenant, id string) (dpp *DispatcherHost, err error)
- func (iDB *InternalDB) GetDispatcherProfileDrv(tenant, id string) (dpp *DispatcherProfile, err error)
- func (iDB *InternalDB) GetFilterDrv(tenant, id string) (fltr *Filter, err error)
- func (iDB *InternalDB) GetFilterIndexesDrv(cacheID, itemIDPrefix, filterType string, fldNameVal map[string]string) (indexes map[string]utils.StringMap, err error)
- func (iDB *InternalDB) GetItemLoadIDsDrv(itemIDPrefix string) (loadIDs map[string]int64, err error)
- func (iDB *InternalDB) GetKeysForPrefix(prefix string) ([]string, error)
- func (iDB *InternalDB) GetLoadHistory(int, bool, string) ([]*utils.LoadInstance, error)
- func (iDB *InternalDB) GetRatingPlanDrv(id string) (rp *RatingPlan, err error)
- func (iDB *InternalDB) GetRatingProfileDrv(id string) (rp *RatingProfile, err error)
- func (iDB *InternalDB) GetResourceDrv(tenant, id string) (r *Resource, err error)
- func (iDB *InternalDB) GetResourceProfileDrv(tenant, id string) (rp *ResourceProfile, err error)
- func (iDB *InternalDB) GetReverseDestinationDrv(prefix string, skipCache bool, transactionID string) (ids []string, err error)
- func (iDB *InternalDB) GetSMCosts(cgrid, runid, originHost, originIDPrfx string) (smCosts []*SMCost, err error)
- func (iDB *InternalDB) GetSharedGroupDrv(id string) (sh *SharedGroup, err error)
- func (iDB *InternalDB) GetStatQueueDrv(tenant, id string) (sq *StatQueue, err error)
- func (iDB *InternalDB) GetStatQueueProfileDrv(tenant string, id string) (sq *StatQueueProfile, err error)
- func (iDB *InternalDB) GetStorageType() string
- func (iDB *InternalDB) GetSupplierProfileDrv(tenant, id string) (spp *SupplierProfile, err error)
- func (iDB *InternalDB) GetTPAccountActions(filter *utils.TPAccountActions) (accounts []*utils.TPAccountActions, err error)
- func (iDB *InternalDB) GetTPActionPlans(tpid, id string) (aPlans []*utils.TPActionPlan, err error)
- func (iDB *InternalDB) GetTPActionTriggers(tpid, id string) (aTriggers []*utils.TPActionTriggers, err error)
- func (iDB *InternalDB) GetTPActions(tpid, id string) (actions []*utils.TPActions, err error)
- func (iDB *InternalDB) GetTPAttributes(tpid, tenant, id string) (attrs []*utils.TPAttributeProfile, err error)
- func (iDB *InternalDB) GetTPChargers(tpid, tenant, id string) (cpps []*utils.TPChargerProfile, err error)
- func (iDB *InternalDB) GetTPDestinationRates(tpid, id string, paginator *utils.Paginator) (dRates []*utils.TPDestinationRate, err error)
- func (iDB *InternalDB) GetTPDestinations(tpid, id string) (dsts []*utils.TPDestination, err error)
- func (iDB *InternalDB) GetTPDispatcherHosts(tpid, tenant, id string) (dpps []*utils.TPDispatcherHost, err error)
- func (iDB *InternalDB) GetTPDispatcherProfiles(tpid, tenant, id string) (dpps []*utils.TPDispatcherProfile, err error)
- func (iDB *InternalDB) GetTPFilters(tpid, tenant, id string) (fltrs []*utils.TPFilterProfile, err error)
- func (iDB *InternalDB) GetTPRates(tpid, id string) (rates []*utils.TPRate, err error)
- func (iDB *InternalDB) GetTPRatingPlans(tpid, id string, paginator *utils.Paginator) (rPlans []*utils.TPRatingPlan, err error)
- func (iDB *InternalDB) GetTPRatingProfiles(filter *utils.TPRatingProfile) (rProfiles []*utils.TPRatingProfile, err error)
- func (iDB *InternalDB) GetTPResources(tpid, tenant, id string) (resources []*utils.TPResourceProfile, err error)
- func (iDB *InternalDB) GetTPSharedGroups(tpid, id string) (sGroups []*utils.TPSharedGroups, err error)
- func (iDB *InternalDB) GetTPStats(tpid, tenant, id string) (stats []*utils.TPStatProfile, err error)
- func (iDB *InternalDB) GetTPSuppliers(tpid, tenant, id string) (supps []*utils.TPSupplierProfile, err error)
- func (iDB *InternalDB) GetTPThresholds(tpid, tenant, id string) (ths []*utils.TPThresholdProfile, err error)
- func (iDB *InternalDB) GetTPTimings(tpid, id string) (timings []*utils.ApierTPTiming, err error)
- func (iDB *InternalDB) GetThresholdDrv(tenant, id string) (th *Threshold, err error)
- func (iDB *InternalDB) GetThresholdProfileDrv(tenant, id string) (tp *ThresholdProfile, err error)
- func (iDB *InternalDB) GetTimingDrv(id string) (tmg *utils.TPTiming, err error)
- func (iDB *InternalDB) GetTpIds(colName string) (ids []string, err error)
- func (iDB *InternalDB) GetTpTableIds(tpid, table string, distinct utils.TPDistinctIds, filters map[string]string, ...) (ids []string, err error)
- func (iDB *InternalDB) GetVersions(itm string) (vrs Versions, err error)
- func (iDB *InternalDB) HasDataDrv(category, subject, tenant string) (bool, error)
- func (iDB *InternalDB) IsDBEmpty() (resp bool, err error)
- func (iDB *InternalDB) MatchFilterIndexDrv(cacheID, itemIDPrefix, filterType, fieldName, fieldVal string) (itemIDs utils.StringMap, err error)
- func (iDB *InternalDB) PopTask() (t *Task, err error)
- func (iDB *InternalDB) PushTask(t *Task) (err error)
- func (iDB *InternalDB) RebuildReverseForPrefix(prefix string) (err error)
- func (iDB *InternalDB) RemAccountActionPlansDrv(acntID string, apIDs []string) (err error)
- func (iDB *InternalDB) RemStatQueueDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemStatQueueProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemThresholdProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemTpData(table, tpid string, args map[string]string) (err error)
- func (iDB *InternalDB) RemoveAccountDrv(id string) (err error)
- func (iDB *InternalDB) RemoveActionPlanDrv(key string, transactionID string) (err error)
- func (iDB *InternalDB) RemoveActionTriggersDrv(id string) (err error)
- func (iDB *InternalDB) RemoveActionsDrv(id string) (err error)
- func (iDB *InternalDB) RemoveAttributeProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveChargerProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveDestinationDrv(destID string, transactionID string) (err error)
- func (iDB *InternalDB) RemoveDispatcherHostDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveDispatcherProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveFilterDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveFilterIndexesDrv(cacheID, itemIDPrefix string) (err error)
- func (iDB *InternalDB) RemoveLoadIDsDrv() (err error)
- func (iDB *InternalDB) RemoveRatingPlanDrv(id string) (err error)
- func (iDB *InternalDB) RemoveRatingProfileDrv(id string) (err error)
- func (iDB *InternalDB) RemoveResourceDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveResourceProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveReverseForPrefix(prefix string) (err error)
- func (iDB *InternalDB) RemoveSMCost(smc *SMCost) (err error)
- func (iDB *InternalDB) RemoveSMCosts(qryFltr *utils.SMCostFilter) error
- func (iDB *InternalDB) RemoveSharedGroupDrv(id string) (err error)
- func (iDB *InternalDB) RemoveSupplierProfileDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveThresholdDrv(tenant, id string) (err error)
- func (iDB *InternalDB) RemoveTimingDrv(id string) (err error)
- func (iDB *InternalDB) RemoveVersions(vrs Versions) (err error)
- func (iDB *InternalDB) SelectDatabase(dbName string) (err error)
- func (iDB *InternalDB) SetAccountActionPlansDrv(acntID string, apIDs []string, overwrite bool) (err error)
- func (iDB *InternalDB) SetAccountDrv(acc *Account) (err error)
- func (iDB *InternalDB) SetActionPlanDrv(key string, ats *ActionPlan, overwrite bool, transactionID string) (err error)
- func (iDB *InternalDB) SetActionTriggersDrv(id string, at ActionTriggers) (err error)
- func (iDB *InternalDB) SetActionsDrv(id string, acts Actions) (err error)
- func (iDB *InternalDB) SetAttributeProfileDrv(attr *AttributeProfile) (err error)
- func (iDB *InternalDB) SetCDR(cdr *CDR, allowUpdate bool) (err error)
- func (iDB *InternalDB) SetChargerProfileDrv(chr *ChargerProfile) (err error)
- func (iDB *InternalDB) SetDestinationDrv(dest *Destination, transactionID string) (err error)
- func (iDB *InternalDB) SetDispatcherHostDrv(dpp *DispatcherHost) (err error)
- func (iDB *InternalDB) SetDispatcherProfileDrv(dpp *DispatcherProfile) (err error)
- func (iDB *InternalDB) SetFilterDrv(fltr *Filter) (err error)
- func (iDB *InternalDB) SetFilterIndexesDrv(cacheID, itemIDPrefix string, indexes map[string]utils.StringMap, commit bool, ...) (err error)
- func (iDB *InternalDB) SetLoadIDsDrv(loadIDs map[string]int64) (err error)
- func (iDB *InternalDB) SetPrefixIndexedFields(prefixIndexedFields []string)
- func (iDB *InternalDB) SetRatingPlanDrv(rp *RatingPlan) (err error)
- func (iDB *InternalDB) SetRatingProfileDrv(rp *RatingProfile) (err error)
- func (iDB *InternalDB) SetResourceDrv(r *Resource) (err error)
- func (iDB *InternalDB) SetResourceProfileDrv(rp *ResourceProfile) (err error)
- func (iDB *InternalDB) SetReverseDestinationDrv(dest *Destination, transactionID string) (err error)
- func (iDB *InternalDB) SetSMCost(smCost *SMCost) (err error)
- func (iDB *InternalDB) SetSharedGroupDrv(sh *SharedGroup) (err error)
- func (iDB *InternalDB) SetStatQueueDrv(ssq *StoredStatQueue, sq *StatQueue) (err error)
- func (iDB *InternalDB) SetStatQueueProfileDrv(sq *StatQueueProfile) (err error)
- func (iDB *InternalDB) SetStringIndexedFields(stringIndexedFields []string)
- func (iDB *InternalDB) SetSupplierProfileDrv(spp *SupplierProfile) (err error)
- func (iDB *InternalDB) SetTPAccountActions(accActions []*utils.TPAccountActions) (err error)
- func (iDB *InternalDB) SetTPActionPlans(aPlans []*utils.TPActionPlan) (err error)
- func (iDB *InternalDB) SetTPActionTriggers(aTriggers []*utils.TPActionTriggers) (err error)
- func (iDB *InternalDB) SetTPActions(acts []*utils.TPActions) (err error)
- func (iDB *InternalDB) SetTPAttributes(attributes []*utils.TPAttributeProfile) (err error)
- func (iDB *InternalDB) SetTPChargers(cpps []*utils.TPChargerProfile) (err error)
- func (iDB *InternalDB) SetTPDestinationRates(dRates []*utils.TPDestinationRate) (err error)
- func (iDB *InternalDB) SetTPDestinations(dests []*utils.TPDestination) (err error)
- func (iDB *InternalDB) SetTPDispatcherHosts(dpps []*utils.TPDispatcherHost) (err error)
- func (iDB *InternalDB) SetTPDispatcherProfiles(dpps []*utils.TPDispatcherProfile) (err error)
- func (iDB *InternalDB) SetTPFilters(filters []*utils.TPFilterProfile) (err error)
- func (iDB *InternalDB) SetTPRates(rates []*utils.TPRate) (err error)
- func (iDB *InternalDB) SetTPRatingPlans(ratingPlans []*utils.TPRatingPlan) (err error)
- func (iDB *InternalDB) SetTPRatingProfiles(ratingProfiles []*utils.TPRatingProfile) (err error)
- func (iDB *InternalDB) SetTPResources(resources []*utils.TPResourceProfile) (err error)
- func (iDB *InternalDB) SetTPSharedGroups(groups []*utils.TPSharedGroups) (err error)
- func (iDB *InternalDB) SetTPStats(stats []*utils.TPStatProfile) (err error)
- func (iDB *InternalDB) SetTPSuppliers(suppliers []*utils.TPSupplierProfile) (err error)
- func (iDB *InternalDB) SetTPThresholds(thresholds []*utils.TPThresholdProfile) (err error)
- func (iDB *InternalDB) SetTPTimings(timings []*utils.ApierTPTiming) (err error)
- func (iDB *InternalDB) SetThresholdDrv(th *Threshold) (err error)
- func (iDB *InternalDB) SetThresholdProfileDrv(tp *ThresholdProfile) (err error)
- func (iDB *InternalDB) SetTimingDrv(timing *utils.TPTiming) (err error)
- func (iDB *InternalDB) SetVersions(vrs Versions, overwrite bool) (err error)
- func (iDB *InternalDB) UpdateReverseDestinationDrv(oldDest, newDest *Destination, transactionID string) error
- type JSONBufMarshaler
- type JSONMarshaler
- type KafkaPoster
- type LeastCostSorter
- type LoadDistributionSorter
- type LoadReader
- type LoadStorage
- type LoadWriter
- type LowestBalancesSorter
- type MapEvent
- func (me MapEvent) AsCDR(cfg *config.CGRConfig, tnt, tmz string) (cdr *CDR, err error)
- func (me MapEvent) AsMapString(ignoredFlds utils.StringSet) (mp map[string]string)
- func (me MapEvent) Clone() (mp MapEvent)
- func (me MapEvent) Data() map[string]interface{}
- func (me MapEvent) FieldAsInterface(fldPath []string) (interface{}, error)
- func (me MapEvent) FieldAsString(fldPath []string) (string, error)
- func (me MapEvent) GetDuration(fldName string) (d time.Duration, err error)
- func (me MapEvent) GetDurationIgnoreErrors(fldName string) (d time.Duration)
- func (me MapEvent) GetDurationPtr(fldName string) (d *time.Duration, err error)
- func (me MapEvent) GetDurationPtrIgnoreErrors(fldName string) (d *time.Duration)
- func (me MapEvent) GetDurationPtrOrDefault(fldName string, dflt *time.Duration) (d *time.Duration, err error)
- func (me MapEvent) GetString(fldName string) (out string, err error)
- func (me MapEvent) GetStringIgnoreErrors(fldName string) (out string)
- func (me MapEvent) GetTInt64(fldName string) (out int64, err error)
- func (me MapEvent) GetTime(fldName string, timezone string) (t time.Time, err error)
- func (me MapEvent) GetTimeIgnoreErrors(fldName string, tmz string) (t time.Time)
- func (me MapEvent) GetTimePtr(fldName, tmz string) (t *time.Time, err error)
- func (me MapEvent) GetTimePtrIgnoreErrors(fldName, tmz string) (t *time.Time)
- func (me MapEvent) HasField(fldName string) (has bool)
- func (me MapEvent) RemoteHost() net.Addr
- func (me MapEvent) String() string
- type Marshaler
- type MetricWithFilters
- type MonetaryInfo
- type MongoStorage
- func (ms *MongoStorage) AddLoadHistory(ldInst *utils.LoadInstance, loadHistSize int, transactionID string) error
- func (ms *MongoStorage) Close()
- func (ms *MongoStorage) DB() *mongo.Database
- func (ms *MongoStorage) EnsureIndexes(cols ...string) (err error)
- func (ms *MongoStorage) Flush(ignore string) (err error)
- func (ms *MongoStorage) GetAccountActionPlansDrv(acntID string, skipCache bool, transactionID string) (aPlIDs []string, err error)
- func (ms *MongoStorage) GetAccountDrv(key string) (result *Account, err error)
- func (ms *MongoStorage) GetActionPlanDrv(key string, skipCache bool, transactionID string) (ats *ActionPlan, err error)
- func (ms *MongoStorage) GetActionTriggersDrv(key string) (atrs ActionTriggers, err error)
- func (ms *MongoStorage) GetActionsDrv(key string) (as Actions, err error)
- func (ms *MongoStorage) GetAllActionPlansDrv() (ats map[string]*ActionPlan, err error)
- func (ms *MongoStorage) GetAttributeProfileDrv(tenant, id string) (r *AttributeProfile, err error)
- func (ms *MongoStorage) GetCDRs(qryFltr *utils.CDRsFilter, remove bool) ([]*CDR, int64, error)
- func (ms *MongoStorage) GetChargerProfileDrv(tenant, id string) (r *ChargerProfile, err error)
- func (ms *MongoStorage) GetContext() context.Context
- func (ms *MongoStorage) GetDestinationDrv(key string, skipCache bool, transactionID string) (result *Destination, err error)
- func (ms *MongoStorage) GetDispatcherHostDrv(tenant, id string) (r *DispatcherHost, err error)
- func (ms *MongoStorage) GetDispatcherProfileDrv(tenant, id string) (r *DispatcherProfile, err error)
- func (ms *MongoStorage) GetFilterDrv(tenant, id string) (r *Filter, err error)
- func (ms *MongoStorage) GetFilterIndexesDrv(cacheID, itemIDPrefix, filterType string, fldNameVal map[string]string) (indexes map[string]utils.StringMap, err error)
- func (ms *MongoStorage) GetItemLoadIDsDrv(itemIDPrefix string) (loadIDs map[string]int64, err error)
- func (ms *MongoStorage) GetKeysForPrefix(prefix string) (result []string, err error)
- func (ms *MongoStorage) GetLoadHistory(limit int, skipCache bool, transactionID string) (loadInsts []*utils.LoadInstance, err error)
- func (ms *MongoStorage) GetRatingPlanDrv(key string) (rp *RatingPlan, err error)
- func (ms *MongoStorage) GetRatingProfileDrv(key string) (rp *RatingProfile, err error)
- func (ms *MongoStorage) GetResourceDrv(tenant, id string) (r *Resource, err error)
- func (ms *MongoStorage) GetResourceProfileDrv(tenant, id string) (rp *ResourceProfile, err error)
- func (ms *MongoStorage) GetReverseDestinationDrv(prefix string, skipCache bool, transactionID string) (ids []string, err error)
- func (ms *MongoStorage) GetSMCosts(cgrid, runid, originHost, originIDPrefix string) (smcs []*SMCost, err error)
- func (ms *MongoStorage) GetSharedGroupDrv(key string) (sg *SharedGroup, err error)
- func (ms *MongoStorage) GetStatQueueDrv(tenant, id string) (sq *StatQueue, err error)
- func (ms *MongoStorage) GetStatQueueProfileDrv(tenant string, id string) (sq *StatQueueProfile, err error)
- func (ms *MongoStorage) GetStorageType() string
- func (ms *MongoStorage) GetSupplierProfileDrv(tenant, id string) (r *SupplierProfile, err error)
- func (ms *MongoStorage) GetTPAccountActions(tp *utils.TPAccountActions) ([]*utils.TPAccountActions, error)
- func (ms *MongoStorage) GetTPActionPlans(tpid, id string) ([]*utils.TPActionPlan, error)
- func (ms *MongoStorage) GetTPActionTriggers(tpid, id string) ([]*utils.TPActionTriggers, error)
- func (ms *MongoStorage) GetTPActions(tpid, id string) ([]*utils.TPActions, error)
- func (ms *MongoStorage) GetTPAttributes(tpid, tenant, id string) ([]*utils.TPAttributeProfile, error)
- func (ms *MongoStorage) GetTPChargers(tpid, tenant, id string) ([]*utils.TPChargerProfile, error)
- func (ms *MongoStorage) GetTPDestinationRates(tpid, id string, pag *utils.Paginator) ([]*utils.TPDestinationRate, error)
- func (ms *MongoStorage) GetTPDestinations(tpid, id string) ([]*utils.TPDestination, error)
- func (ms *MongoStorage) GetTPDispatcherHosts(tpid, tenant, id string) ([]*utils.TPDispatcherHost, error)
- func (ms *MongoStorage) GetTPDispatcherProfiles(tpid, tenant, id string) ([]*utils.TPDispatcherProfile, error)
- func (ms *MongoStorage) GetTPFilters(tpid, tenant, id string) ([]*utils.TPFilterProfile, error)
- func (ms *MongoStorage) GetTPRates(tpid, id string) ([]*utils.TPRate, error)
- func (ms *MongoStorage) GetTPRatingPlans(tpid, id string, pag *utils.Paginator) ([]*utils.TPRatingPlan, error)
- func (ms *MongoStorage) GetTPRatingProfiles(tp *utils.TPRatingProfile) ([]*utils.TPRatingProfile, error)
- func (ms *MongoStorage) GetTPResources(tpid, tenant, id string) ([]*utils.TPResourceProfile, error)
- func (ms *MongoStorage) GetTPSharedGroups(tpid, id string) ([]*utils.TPSharedGroups, error)
- func (ms *MongoStorage) GetTPStats(tpid, tenant, id string) ([]*utils.TPStatProfile, error)
- func (ms *MongoStorage) GetTPSuppliers(tpid, tenant, id string) ([]*utils.TPSupplierProfile, error)
- func (ms *MongoStorage) GetTPThresholds(tpid, tenant, id string) ([]*utils.TPThresholdProfile, error)
- func (ms *MongoStorage) GetTPTimings(tpid, id string) ([]*utils.ApierTPTiming, error)
- func (ms *MongoStorage) GetThresholdDrv(tenant, id string) (r *Threshold, err error)
- func (ms *MongoStorage) GetThresholdProfileDrv(tenant, ID string) (tp *ThresholdProfile, err error)
- func (ms *MongoStorage) GetTimingDrv(id string) (t *utils.TPTiming, err error)
- func (ms *MongoStorage) GetTpIds(colName string) (tpids []string, err error)
- func (ms *MongoStorage) GetTpTableIds(tpid, table string, distinct utils.TPDistinctIds, filter map[string]string, ...) ([]string, error)
- func (ms *MongoStorage) GetVersions(itm string) (vrs Versions, err error)
- func (ms *MongoStorage) HasDataDrv(category, subject, tenant string) (has bool, err error)
- func (ms *MongoStorage) IsDBEmpty() (resp bool, err error)
- func (ms *MongoStorage) IsDataDB() bool
- func (ms *MongoStorage) MatchFilterIndexDrv(cacheID, itemIDPrefix, filterType, fldName, fldVal string) (itemIDs utils.StringMap, err error)
- func (ms *MongoStorage) PopTask() (t *Task, err error)
- func (ms *MongoStorage) PushTask(t *Task) error
- func (ms *MongoStorage) RebuildReverseForPrefix(prefix string) (err error)
- func (ms *MongoStorage) RemAccountActionPlansDrv(acntID string, aPlIDs []string) (err error)
- func (ms *MongoStorage) RemStatQueueDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemStatQueueProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemThresholdProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemTpData(table, tpid string, args map[string]string) error
- func (ms *MongoStorage) RemoveAccountDrv(key string) (err error)
- func (ms *MongoStorage) RemoveActionPlanDrv(key string, transactionID string) error
- func (ms *MongoStorage) RemoveActionTriggersDrv(key string) error
- func (ms *MongoStorage) RemoveActionsDrv(key string) error
- func (ms *MongoStorage) RemoveAttributeProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveChargerProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveDestinationDrv(destID string, transactionID string) (err error)
- func (ms *MongoStorage) RemoveDispatcherHostDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveDispatcherProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveFilterDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveFilterIndexesDrv(cacheID, itemIDPrefix string) (err error)
- func (ms *MongoStorage) RemoveLoadIDsDrv() (err error)
- func (ms *MongoStorage) RemoveRatingPlanDrv(key string) error
- func (ms *MongoStorage) RemoveRatingProfileDrv(key string) error
- func (ms *MongoStorage) RemoveResourceDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveResourceProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveReverseForPrefix(prefix string) (err error)
- func (ms *MongoStorage) RemoveSMCost(smc *SMCost) error
- func (ms *MongoStorage) RemoveSMCosts(qryFltr *utils.SMCostFilter) error
- func (ms *MongoStorage) RemoveSharedGroupDrv(id string) (err error)
- func (ms *MongoStorage) RemoveSupplierProfileDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveThresholdDrv(tenant, id string) (err error)
- func (ms *MongoStorage) RemoveTimingDrv(id string) (err error)
- func (ms *MongoStorage) RemoveVersions(vrs Versions) (err error)
- func (ms *MongoStorage) SelectDatabase(dbName string) (err error)
- func (ms *MongoStorage) SetAccountActionPlansDrv(acntID string, aPlIDs []string, overwrite bool) (err error)
- func (ms *MongoStorage) SetAccountDrv(acc *Account) error
- func (ms *MongoStorage) SetActionPlanDrv(key string, ats *ActionPlan, overwrite bool, transactionID string) (err error)
- func (ms *MongoStorage) SetActionTriggersDrv(key string, atrs ActionTriggers) (err error)
- func (ms *MongoStorage) SetActionsDrv(key string, as Actions) error
- func (ms *MongoStorage) SetAttributeProfileDrv(r *AttributeProfile) (err error)
- func (ms *MongoStorage) SetCDR(cdr *CDR, allowUpdate bool) error
- func (ms *MongoStorage) SetChargerProfileDrv(r *ChargerProfile) (err error)
- func (ms *MongoStorage) SetDestinationDrv(dest *Destination, transactionID string) (err error)
- func (ms *MongoStorage) SetDispatcherHostDrv(r *DispatcherHost) (err error)
- func (ms *MongoStorage) SetDispatcherProfileDrv(r *DispatcherProfile) (err error)
- func (ms *MongoStorage) SetFilterDrv(r *Filter) (err error)
- func (ms *MongoStorage) SetFilterIndexesDrv(cacheID, itemIDPrefix string, indexes map[string]utils.StringMap, commit bool, ...) (err error)
- func (ms *MongoStorage) SetLoadIDsDrv(loadIDs map[string]int64) (err error)
- func (ms *MongoStorage) SetRatingPlanDrv(rp *RatingPlan) error
- func (ms *MongoStorage) SetRatingProfileDrv(rp *RatingProfile) (err error)
- func (ms *MongoStorage) SetResourceDrv(r *Resource) (err error)
- func (ms *MongoStorage) SetResourceProfileDrv(rp *ResourceProfile) (err error)
- func (ms *MongoStorage) SetReverseDestinationDrv(dest *Destination, transactionID string) (err error)
- func (ms *MongoStorage) SetSMCost(smc *SMCost) error
- func (ms *MongoStorage) SetSharedGroupDrv(sg *SharedGroup) (err error)
- func (ms *MongoStorage) SetStatQueueDrv(ssq *StoredStatQueue, sq *StatQueue) (err error)
- func (ms *MongoStorage) SetStatQueueProfileDrv(sq *StatQueueProfile) (err error)
- func (ms *MongoStorage) SetSupplierProfileDrv(r *SupplierProfile) (err error)
- func (ms *MongoStorage) SetTPAccountActions(tps []*utils.TPAccountActions) error
- func (ms *MongoStorage) SetTPActionPlans(tps []*utils.TPActionPlan) error
- func (ms *MongoStorage) SetTPActionTriggers(tps []*utils.TPActionTriggers) error
- func (ms *MongoStorage) SetTPActions(tps []*utils.TPActions) error
- func (ms *MongoStorage) SetTPAttributes(tpSPs []*utils.TPAttributeProfile) (err error)
- func (ms *MongoStorage) SetTPChargers(tpCPP []*utils.TPChargerProfile) (err error)
- func (ms *MongoStorage) SetTPDestinationRates(tps []*utils.TPDestinationRate) error
- func (ms *MongoStorage) SetTPDestinations(tpDsts []*utils.TPDestination) (err error)
- func (ms *MongoStorage) SetTPDispatcherHosts(tpDPPs []*utils.TPDispatcherHost) (err error)
- func (ms *MongoStorage) SetTPDispatcherProfiles(tpDPPs []*utils.TPDispatcherProfile) (err error)
- func (ms *MongoStorage) SetTPFilters(tpTHs []*utils.TPFilterProfile) (err error)
- func (ms *MongoStorage) SetTPRStats(tps []*utils.TPStatProfile) (err error)
- func (ms *MongoStorage) SetTPRates(tps []*utils.TPRate) error
- func (ms *MongoStorage) SetTPRatingPlans(tps []*utils.TPRatingPlan) error
- func (ms *MongoStorage) SetTPRatingProfiles(tps []*utils.TPRatingProfile) error
- func (ms *MongoStorage) SetTPResources(tpRLs []*utils.TPResourceProfile) (err error)
- func (ms *MongoStorage) SetTPSharedGroups(tps []*utils.TPSharedGroups) error
- func (ms *MongoStorage) SetTPStats(tpSTs []*utils.TPStatProfile) (err error)
- func (ms *MongoStorage) SetTPSuppliers(tpSPs []*utils.TPSupplierProfile) (err error)
- func (ms *MongoStorage) SetTPThresholds(tpTHs []*utils.TPThresholdProfile) (err error)
- func (ms *MongoStorage) SetTPTimings(tps []*utils.ApierTPTiming) error
- func (ms *MongoStorage) SetTTL(ttl time.Duration)
- func (ms *MongoStorage) SetThresholdDrv(r *Threshold) (err error)
- func (ms *MongoStorage) SetThresholdProfileDrv(tp *ThresholdProfile) (err error)
- func (ms *MongoStorage) SetTimingDrv(t *utils.TPTiming) (err error)
- func (ms *MongoStorage) SetVersions(vrs Versions, overwrite bool) (err error)
- func (ms *MongoStorage) UpdateReverseDestinationDrv(oldDest, newDest *Destination, transactionID string) error
- type MySQLStorage
- type PjsuaAccount
- type Poster
- type PosterCache
- func (pc *PosterCache) Close()
- func (pc *PosterCache) GetAMQPPoster(dialURL string, attempts int) (pstr Poster, err error)
- func (pc *PosterCache) GetAMQPv1Poster(dialURL string, attempts int) (pstr Poster, err error)
- func (pc *PosterCache) GetKafkaPoster(dialURL string, attempts int) (pstr Poster, err error)
- func (pc *PosterCache) GetS3Poster(dialURL string, attempts int) (pstr Poster, err error)
- func (pc *PosterCache) GetSQSPoster(dialURL string, attempts int) (pstr Poster, err error)
- func (pc *PosterCache) PostAMQP(dialURL string, attempts int, content []byte) error
- func (pc *PosterCache) PostAMQPv1(dialURL string, attempts int, content []byte) error
- func (pc *PosterCache) PostKafka(dialURL string, attempts int, content []byte, key string) error
- func (pc *PosterCache) PostS3(dialURL string, attempts int, content []byte, key string) error
- func (pc *PosterCache) PostSQS(dialURL string, attempts int, content []byte) error
- type PostgresStorage
- type QOSSupplierSorter
- type RIRate
- type RITiming
- type RPCClientSet
- type RPCRequest
- type RPRate
- type RPRateList
- type RandomBalancesSorter
- type Rate
- type RateGroups
- func (pg *RateGroups) AddRate(ps ...*Rate)
- func (pg RateGroups) Clone() (cln RateGroups)
- func (pg RateGroups) Equal(og RateGroups) bool
- func (pg RateGroups) Equals(oRG RateGroups) bool
- func (pg RateGroups) Len() int
- func (pg RateGroups) Less(i, j int) bool
- func (pg RateGroups) Sort()
- func (pg RateGroups) Swap(i, j int)
- type RateInterval
- func (i *RateInterval) Clone() (cln *RateInterval)
- func (i *RateInterval) Contains(t time.Time, endTime bool) bool
- func (i *RateInterval) Equal(o *RateInterval) bool
- func (i *RateInterval) GetCost(duration, startSecond time.Duration) float64
- func (ri *RateInterval) GetMaxCost() (float64, string)
- func (i *RateInterval) GetRateParameters(startSecond time.Duration) (rate float64, rateIncrement, rateUnit time.Duration)
- func (i *RateInterval) String_DISABLED() string
- type RateIntervalList
- type RateIntervalTimeSorter
- type Rating
- type RatingFilters
- type RatingInfo
- type RatingInfos
- type RatingMatchedFilters
- type RatingPlan
- type RatingPlanActivation
- type RatingPlanActivations
- type RatingProfile
- type RatingUnit
- type RawCdr
- type RedisStorage
- func (rs *RedisStorage) AddLoadHistory(ldInst *utils.LoadInstance, loadHistSize int, transactionID string) error
- func (rs *RedisStorage) Close()
- func (rs *RedisStorage) Cmd(cmd string, args ...interface{}) *redis.Resp
- func (rs *RedisStorage) Flush(ignore string) error
- func (rs *RedisStorage) GetAccountActionPlansDrv(acntID string, skipCache bool, transactionID string) (aPlIDs []string, err error)
- func (rs *RedisStorage) GetAccountDrv(key string) (*Account, error)
- func (rs *RedisStorage) GetActionPlanDrv(key string, skipCache bool, transactionID string) (ats *ActionPlan, err error)
- func (rs *RedisStorage) GetActionTriggersDrv(key string) (atrs ActionTriggers, err error)
- func (rs *RedisStorage) GetActionsDrv(key string) (as Actions, err error)
- func (rs *RedisStorage) GetAllActionPlansDrv() (ats map[string]*ActionPlan, err error)
- func (rs *RedisStorage) GetAttributeProfileDrv(tenant, id string) (r *AttributeProfile, err error)
- func (rs *RedisStorage) GetChargerProfileDrv(tenant, id string) (r *ChargerProfile, err error)
- func (rs *RedisStorage) GetDestinationDrv(key string, skipCache bool, transactionID string) (dest *Destination, err error)
- func (rs *RedisStorage) GetDispatcherHostDrv(tenant, id string) (r *DispatcherHost, err error)
- func (rs *RedisStorage) GetDispatcherProfileDrv(tenant, id string) (r *DispatcherProfile, err error)
- func (rs *RedisStorage) GetFilterDrv(tenant, id string) (r *Filter, err error)
- func (rs *RedisStorage) GetFilterIndexesDrv(cacheID, itemIDPrefix, filterType string, fldNameVal map[string]string) (indexes map[string]utils.StringMap, err error)
- func (rs *RedisStorage) GetItemLoadIDsDrv(itemIDPrefix string) (loadIDs map[string]int64, err error)
- func (rs *RedisStorage) GetKeysForPrefix(prefix string) ([]string, error)
- func (rs *RedisStorage) GetLoadHistory(limit int, skipCache bool, transactionID string) ([]*utils.LoadInstance, error)
- func (rs *RedisStorage) GetRatingPlanDrv(key string) (rp *RatingPlan, err error)
- func (rs *RedisStorage) GetRatingProfileDrv(key string) (rpf *RatingProfile, err error)
- func (rs *RedisStorage) GetResourceDrv(tenant, id string) (r *Resource, err error)
- func (rs *RedisStorage) GetResourceProfileDrv(tenant, id string) (rsp *ResourceProfile, err error)
- func (rs *RedisStorage) GetReverseDestinationDrv(key string, skipCache bool, transactionID string) (ids []string, err error)
- func (rs *RedisStorage) GetSharedGroupDrv(key string) (sg *SharedGroup, err error)
- func (rs *RedisStorage) GetStatQueueDrv(tenant, id string) (sq *StatQueue, err error)
- func (rs *RedisStorage) GetStatQueueProfileDrv(tenant string, id string) (sq *StatQueueProfile, err error)
- func (rs *RedisStorage) GetStorageType() string
- func (rs *RedisStorage) GetSupplierProfileDrv(tenant, id string) (r *SupplierProfile, err error)
- func (rs *RedisStorage) GetThresholdDrv(tenant, id string) (r *Threshold, err error)
- func (rs *RedisStorage) GetThresholdProfileDrv(tenant, ID string) (tp *ThresholdProfile, err error)
- func (rs *RedisStorage) GetTimingDrv(id string) (t *utils.TPTiming, err error)
- func (rs *RedisStorage) GetVersions(itm string) (vrs Versions, err error)
- func (rs *RedisStorage) HasDataDrv(category, subject, tenant string) (bool, error)
- func (rs *RedisStorage) IsDBEmpty() (resp bool, err error)
- func (rs *RedisStorage) Marshaler() Marshaler
- func (rs *RedisStorage) MatchFilterIndexDrv(cacheID, itemIDPrefix, filterType, fldName, fldVal string) (itemIDs utils.StringMap, err error)
- func (rs *RedisStorage) PopTask() (t *Task, err error)
- func (rs *RedisStorage) PushTask(t *Task) error
- func (rs *RedisStorage) RebbuildActionPlanKeys() error
- func (rs *RedisStorage) RebuildReverseForPrefix(prefix string) (err error)
- func (rs *RedisStorage) RemAccountActionPlansDrv(acntID string, aPlIDs []string) (err error)
- func (rs *RedisStorage) RemStatQueueDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemStatQueueProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemThresholdProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveAccountDrv(key string) (err error)
- func (rs *RedisStorage) RemoveActionPlanDrv(key string, transactionID string) error
- func (rs *RedisStorage) RemoveActionTriggersDrv(key string) (err error)
- func (rs *RedisStorage) RemoveActionsDrv(key string) (err error)
- func (rs *RedisStorage) RemoveAttributeProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveChargerProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveDestinationDrv(destID, transactionID string) (err error)
- func (rs *RedisStorage) RemoveDispatcherHostDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveDispatcherProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveFilterDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveFilterIndexesDrv(cacheID, itemIDPrefix string) (err error)
- func (rs *RedisStorage) RemoveLoadIDsDrv() (err error)
- func (rs *RedisStorage) RemoveRatingPlanDrv(key string) error
- func (rs *RedisStorage) RemoveRatingProfileDrv(key string) error
- func (rs *RedisStorage) RemoveResourceDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveResourceProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveReverseForPrefix(prefix string) (err error)
- func (rs *RedisStorage) RemoveSharedGroupDrv(id string) (err error)
- func (rs *RedisStorage) RemoveSupplierProfileDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveThresholdDrv(tenant, id string) (err error)
- func (rs *RedisStorage) RemoveTimingDrv(id string) (err error)
- func (rs *RedisStorage) RemoveVersions(vrs Versions) (err error)
- func (rs *RedisStorage) SelectDatabase(dbName string) (err error)
- func (rs *RedisStorage) SetAccountActionPlansDrv(acntID string, aPlIDs []string, overwrite bool) (err error)
- func (rs *RedisStorage) SetAccountDrv(acc *Account) (err error)
- func (rs *RedisStorage) SetActionPlanDrv(key string, ats *ActionPlan, overwrite bool, transactionID string) (err error)
- func (rs *RedisStorage) SetActionTriggersDrv(key string, atrs ActionTriggers) (err error)
- func (rs *RedisStorage) SetActionsDrv(key string, as Actions) (err error)
- func (rs *RedisStorage) SetAttributeProfileDrv(r *AttributeProfile) (err error)
- func (rs *RedisStorage) SetChargerProfileDrv(r *ChargerProfile) (err error)
- func (rs *RedisStorage) SetDestinationDrv(dest *Destination, transactionID string) (err error)
- func (rs *RedisStorage) SetDispatcherHostDrv(r *DispatcherHost) (err error)
- func (rs *RedisStorage) SetDispatcherProfileDrv(r *DispatcherProfile) (err error)
- func (rs *RedisStorage) SetFilterDrv(r *Filter) (err error)
- func (rs *RedisStorage) SetFilterIndexesDrv(cacheID, itemIDPrefix string, indexes map[string]utils.StringMap, commit bool, ...) (err error)
- func (rs *RedisStorage) SetLoadIDsDrv(loadIDs map[string]int64) error
- func (rs *RedisStorage) SetRatingPlanDrv(rp *RatingPlan) (err error)
- func (rs *RedisStorage) SetRatingProfileDrv(rpf *RatingProfile) (err error)
- func (rs *RedisStorage) SetResourceDrv(r *Resource) (err error)
- func (rs *RedisStorage) SetResourceProfileDrv(rsp *ResourceProfile) error
- func (rs *RedisStorage) SetReverseDestinationDrv(dest *Destination, transactionID string) (err error)
- func (rs *RedisStorage) SetSharedGroupDrv(sg *SharedGroup) (err error)
- func (rs *RedisStorage) SetStatQueueDrv(ssq *StoredStatQueue, sq *StatQueue) (err error)
- func (rs *RedisStorage) SetStatQueueProfileDrv(sq *StatQueueProfile) (err error)
- func (rs *RedisStorage) SetSupplierProfileDrv(r *SupplierProfile) (err error)
- func (rs *RedisStorage) SetThresholdDrv(r *Threshold) (err error)
- func (rs *RedisStorage) SetThresholdProfileDrv(tp *ThresholdProfile) (err error)
- func (rs *RedisStorage) SetTimingDrv(t *utils.TPTiming) error
- func (rs *RedisStorage) SetVersions(vrs Versions, overwrite bool) (err error)
- func (rs *RedisStorage) UpdateReverseDestinationDrv(oldDest, newDest *Destination, transactionID string) error
- type RemAccountActionPlansArgs
- type Resource
- type ResourceAscendentSorter
- type ResourceDescendentSorter
- type ResourceProfile
- type ResourceService
- func (rS *ResourceService) ListenAndServe(exitChan chan bool) error
- func (rS *ResourceService) Reload()
- func (rS *ResourceService) Shutdown() error
- func (rS *ResourceService) StartLoop()
- func (rS *ResourceService) StoreResource(r *Resource) (err error)
- func (rS *ResourceService) V1AllocateResource(args utils.ArgRSv1ResourceUsage, reply *string) (err error)
- func (rS *ResourceService) V1AuthorizeResources(args utils.ArgRSv1ResourceUsage, reply *string) (err error)
- func (rS *ResourceService) V1GetResource(arg *utils.TenantID, reply *Resource) error
- func (rS *ResourceService) V1ReleaseResource(args utils.ArgRSv1ResourceUsage, reply *string) (err error)
- func (rS *ResourceService) V1ResourcesForEvent(args utils.ArgRSv1ResourceUsage, reply *Resources) (err error)
- type ResourceUsage
- type Resources
- type Responder
- func (rs *Responder) Call(serviceMethod string, args interface{}, reply interface{}) error
- func (rs *Responder) Debit(arg *CallDescriptorWithArgDispatcher, reply *CallCost) (err error)
- func (rs *Responder) GetCost(arg *CallDescriptorWithArgDispatcher, reply *CallCost) (err error)
- func (rs *Responder) GetMaxSessionTime(arg *CallDescriptorWithArgDispatcher, reply *time.Duration) (err error)
- func (rs *Responder) MaxDebit(arg *CallDescriptorWithArgDispatcher, reply *CallCost) (err error)
- func (chSv1 *Responder) Ping(ign *utils.CGREventWithArgDispatcher, reply *string) error
- func (rs *Responder) RefundIncrements(arg *CallDescriptorWithArgDispatcher, reply *Account) (err error)
- func (rs *Responder) RefundRounding(arg *CallDescriptorWithArgDispatcher, reply *float64) (err error)
- func (rs *Responder) SetMaxComputedUsage(mx map[string]time.Duration)
- func (rs *Responder) Shutdown(arg *utils.TenantWithArgDispatcher, reply *string) (err error)
- type S3Poster
- type SMCost
- type SQItem
- type SQLImpl
- type SQLStorage
- func (self *SQLStorage) Close()
- func (self *SQLStorage) CreateTablesFromScript(scriptPath string) error
- func (self *SQLStorage) ExportGormDB() *gorm.DB
- func (self *SQLStorage) Flush(scriptsPath string) (err error)
- func (self *SQLStorage) GetCDRs(qryFltr *utils.CDRsFilter, remove bool) ([]*CDR, int64, error)
- func (self *SQLStorage) GetKeysForPrefix(prefix string) ([]string, error)
- func (self *SQLStorage) GetSMCosts(cgrid, runid, originHost, originIDPrefix string) ([]*SMCost, error)
- func (self *SQLStorage) GetTPAccountActions(filter *utils.TPAccountActions) ([]*utils.TPAccountActions, error)
- func (self *SQLStorage) GetTPActionPlans(tpid, id string) ([]*utils.TPActionPlan, error)
- func (self *SQLStorage) GetTPActionTriggers(tpid, id string) ([]*utils.TPActionTriggers, error)
- func (self *SQLStorage) GetTPActions(tpid, id string) ([]*utils.TPActions, error)
- func (self *SQLStorage) GetTPAttributes(tpid, tenant, id string) ([]*utils.TPAttributeProfile, error)
- func (self *SQLStorage) GetTPChargers(tpid, tenant, id string) ([]*utils.TPChargerProfile, error)
- func (self *SQLStorage) GetTPDestinationRates(tpid, id string, pagination *utils.Paginator) ([]*utils.TPDestinationRate, error)
- func (self *SQLStorage) GetTPDestinations(tpid, id string) (uTPDsts []*utils.TPDestination, err error)
- func (self *SQLStorage) GetTPDispatcherHosts(tpid, tenant, id string) ([]*utils.TPDispatcherHost, error)
- func (self *SQLStorage) GetTPDispatcherProfiles(tpid, tenant, id string) ([]*utils.TPDispatcherProfile, error)
- func (self *SQLStorage) GetTPFilters(tpid, tenant, id string) ([]*utils.TPFilterProfile, error)
- func (self *SQLStorage) GetTPRates(tpid, id string) ([]*utils.TPRate, error)
- func (self *SQLStorage) GetTPRatingPlans(tpid, id string, pagination *utils.Paginator) ([]*utils.TPRatingPlan, error)
- func (self *SQLStorage) GetTPRatingProfiles(filter *utils.TPRatingProfile) ([]*utils.TPRatingProfile, error)
- func (self *SQLStorage) GetTPResources(tpid, tenant, id string) ([]*utils.TPResourceProfile, error)
- func (self *SQLStorage) GetTPSharedGroups(tpid, id string) ([]*utils.TPSharedGroups, error)
- func (self *SQLStorage) GetTPStats(tpid, tenant, id string) ([]*utils.TPStatProfile, error)
- func (self *SQLStorage) GetTPSuppliers(tpid, tenant, id string) ([]*utils.TPSupplierProfile, error)
- func (self *SQLStorage) GetTPThresholds(tpid, tenant, id string) ([]*utils.TPThresholdProfile, error)
- func (self *SQLStorage) GetTPTimings(tpid, id string) ([]*utils.ApierTPTiming, error)
- func (self *SQLStorage) GetTpIds(colName string) ([]string, error)
- func (self *SQLStorage) GetTpTableIds(tpid, table string, distinct utils.TPDistinctIds, filters map[string]string, ...) ([]string, error)
- func (self *SQLStorage) GetVersions(itm string) (vrs Versions, err error)
- func (self *SQLStorage) IsDBEmpty() (resp bool, err error)
- func (self *SQLStorage) RebuildReverseForPrefix(prefix string) error
- func (self *SQLStorage) RemTpData(table, tpid string, args map[string]string) error
- func (self *SQLStorage) RemoveSMCost(smc *SMCost) error
- func (self *SQLStorage) RemoveSMCosts(qryFltr *utils.SMCostFilter) error
- func (self *SQLStorage) RemoveVersions(vrs Versions) (err error)
- func (rs *SQLStorage) SelectDatabase(dbName string) (err error)
- func (self *SQLStorage) SetCDR(cdr *CDR, allowUpdate bool) error
- func (self *SQLStorage) SetSMCost(smc *SMCost) error
- func (self *SQLStorage) SetTPAccountActions(aas []*utils.TPAccountActions) error
- func (self *SQLStorage) SetTPActionPlans(ats []*utils.TPActionPlan) error
- func (self *SQLStorage) SetTPActionTriggers(ats []*utils.TPActionTriggers) error
- func (self *SQLStorage) SetTPActions(acts []*utils.TPActions) error
- func (self *SQLStorage) SetTPAttributes(tpAttrs []*utils.TPAttributeProfile) error
- func (self *SQLStorage) SetTPChargers(tpCPPs []*utils.TPChargerProfile) error
- func (self *SQLStorage) SetTPDestinationRates(drs []*utils.TPDestinationRate) error
- func (self *SQLStorage) SetTPDestinations(dests []*utils.TPDestination) error
- func (self *SQLStorage) SetTPDispatcherHosts(tpDPPs []*utils.TPDispatcherHost) error
- func (self *SQLStorage) SetTPDispatcherProfiles(tpDPPs []*utils.TPDispatcherProfile) error
- func (self *SQLStorage) SetTPFilters(ths []*utils.TPFilterProfile) error
- func (self *SQLStorage) SetTPRates(rs []*utils.TPRate) error
- func (self *SQLStorage) SetTPRatingPlans(rps []*utils.TPRatingPlan) error
- func (self *SQLStorage) SetTPRatingProfiles(rpfs []*utils.TPRatingProfile) error
- func (self *SQLStorage) SetTPResources(rls []*utils.TPResourceProfile) error
- func (self *SQLStorage) SetTPSharedGroups(sgs []*utils.TPSharedGroups) error
- func (self *SQLStorage) SetTPStats(sts []*utils.TPStatProfile) error
- func (self *SQLStorage) SetTPSuppliers(tpSPs []*utils.TPSupplierProfile) error
- func (self *SQLStorage) SetTPThresholds(ths []*utils.TPThresholdProfile) error
- func (self *SQLStorage) SetTPTimings(timings []*utils.ApierTPTiming) error
- type SQSPoster
- type STGroup
- type STItemMessage
- type STRequest
- type STRequestItem
- type STResponse
- type STTaxItem
- type SafEvent
- func (se *SafEvent) AsCDR(cfg *config.CGRConfig, tnt, tmz string) (cdr *CDR, err error)
- func (se *SafEvent) AsCGREvent(tnt string) (cgrEv *utils.CGREvent)
- func (se *SafEvent) AsMapInterface() (mp map[string]interface{})
- func (se *SafEvent) AsMapString(ignoredFlds utils.StringSet) (mp map[string]string)
- func (se *SafEvent) Clone() (cln *SafEvent)
- func (se *SafEvent) FieldAsInterface(fldPath []string) (out interface{}, err error)
- func (se *SafEvent) FieldAsString(fldPath []string) (out string, err error)
- func (se *SafEvent) Get(fldName string) (out interface{}, has bool)
- func (se *SafEvent) GetDuration(fldName string) (d time.Duration, err error)
- func (se *SafEvent) GetDurationIgnoreErrors(fldName string) (d time.Duration)
- func (se *SafEvent) GetDurationOrDefault(fldName string, dflt time.Duration) (d time.Duration, err error)
- func (se *SafEvent) GetDurationPtr(fldName string) (d *time.Duration, err error)
- func (se *SafEvent) GetDurationPtrIgnoreErrors(fldName string) (d *time.Duration)
- func (se *SafEvent) GetDurationPtrOrDefault(fldName string, dflt *time.Duration) (d *time.Duration, err error)
- func (se *SafEvent) GetIgnoreErrors(fldName string) (out interface{})
- func (se *SafEvent) GetMapInterface() (mp map[string]interface{})
- func (se *SafEvent) GetSetString(fldName string, setVal string) (out string, err error)
- func (se *SafEvent) GetString(fldName string) (out string, err error)
- func (se *SafEvent) GetStringIgnoreErrors(fldName string) (out string)
- func (se SafEvent) GetTInt64(fldName string) (out int64, err error)
- func (se *SafEvent) GetTime(fldName string, tmz string) (t time.Time, err error)
- func (se *SafEvent) GetTimeIgnoreErrors(fldName string, tmz string) (t time.Time)
- func (se *SafEvent) HasField(fldName string) (has bool)
- func (se *SafEvent) MapEvent() (mp MapEvent)
- func (se *SafEvent) RemoteHost() (out net.Addr)
- func (se *SafEvent) Remove(fldName string)
- func (se *SafEvent) Set(fldName string, val interface{})
- func (se *SafEvent) String() (out string)
- type SessionCostsSQL
- type SetAccountActionPlansArg
- type SetActionPlanArg
- type SetActionTriggersArg
- type SetActionsArgs
- type SharedGroup
- type SharingParameters
- type SortedSupplier
- type SortedSuppliers
- func (sSpls *SortedSuppliers) AsNavigableMap() (nm utils.NavigableMap2)
- func (sSpls *SortedSuppliers) Digest() string
- func (sSpls *SortedSuppliers) SortHighestCost()
- func (sSpls *SortedSuppliers) SortLeastCost()
- func (sSpls *SortedSuppliers) SortLoadDistribution()
- func (sSpls *SortedSuppliers) SortQOS(params []string)
- func (sSpls *SortedSuppliers) SortResourceAscendent()
- func (sSpls *SortedSuppliers) SortResourceDescendent()
- func (sSpls *SortedSuppliers) SortWeight()
- func (sSpls *SortedSuppliers) SupplierIDs() (sIDs []string)
- func (sSpls *SortedSuppliers) SuppliersWithParams() (sPs []string)
- type StatACC
- func (acc *StatACC) AddEvent(ev *utils.CGREvent) (err error)
- func (acc *StatACC) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (acc *StatACC) GetCompressFactor(events map[string]int) map[string]int
- func (acc *StatACC) GetFilterIDs() []string
- func (acc *StatACC) GetFloat64Value() (v float64)
- func (acc *StatACC) GetStringValue(fmtOpts string) (valStr string)
- func (acc *StatACC) GetValue() (v interface{})
- func (acc *StatACC) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (acc *StatACC) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (acc *StatACC) RemEvent(evID string) (err error)
- type StatACD
- func (acd *StatACD) AddEvent(ev *utils.CGREvent) (err error)
- func (acd *StatACD) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (acd *StatACD) GetCompressFactor(events map[string]int) map[string]int
- func (acd *StatACD) GetFilterIDs() []string
- func (acd *StatACD) GetFloat64Value() (v float64)
- func (acd *StatACD) GetStringValue(fmtOpts string) (valStr string)
- func (acd *StatACD) GetValue() (v interface{})
- func (acd *StatACD) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (acd *StatACD) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (acd *StatACD) RemEvent(evID string) (err error)
- type StatASR
- func (asr *StatASR) AddEvent(ev *utils.CGREvent) (err error)
- func (asr *StatASR) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (asr *StatASR) GetCompressFactor(events map[string]int) map[string]int
- func (asr *StatASR) GetFilterIDs() []string
- func (asr *StatASR) GetFloat64Value() (val float64)
- func (asr *StatASR) GetStringValue(fmtOpts string) (valStr string)
- func (asr *StatASR) GetValue() (v interface{})
- func (asr *StatASR) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (asr *StatASR) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (asr *StatASR) RemEvent(evID string) (err error)
- type StatAverage
- func (avg *StatAverage) AddEvent(ev *utils.CGREvent) (err error)
- func (avg *StatAverage) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (avg *StatAverage) GetCompressFactor(events map[string]int) map[string]int
- func (avg *StatAverage) GetFilterIDs() []string
- func (avg *StatAverage) GetFloat64Value() (v float64)
- func (avg *StatAverage) GetStringValue(fmtOpts string) (valStr string)
- func (avg *StatAverage) GetValue() (v interface{})
- func (avg *StatAverage) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (avg *StatAverage) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (avg *StatAverage) RemEvent(evID string) (err error)
- type StatDDC
- func (ddc *StatDDC) AddEvent(ev *utils.CGREvent) (err error)
- func (ddc *StatDDC) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (ddc *StatDDC) GetCompressFactor(events map[string]int) map[string]int
- func (ddc *StatDDC) GetFilterIDs() []string
- func (ddc *StatDDC) GetFloat64Value() (v float64)
- func (ddc *StatDDC) GetStringValue(fmtOpts string) (valStr string)
- func (ddc *StatDDC) GetValue() (v interface{})
- func (ddc *StatDDC) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (ddc *StatDDC) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (ddc *StatDDC) RemEvent(evID string) (err error)
- type StatDistinct
- func (dst *StatDistinct) AddEvent(ev *utils.CGREvent) (err error)
- func (dst *StatDistinct) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (dst *StatDistinct) GetCompressFactor(events map[string]int) map[string]int
- func (dst *StatDistinct) GetFilterIDs() []string
- func (dst *StatDistinct) GetFloat64Value() (v float64)
- func (dst *StatDistinct) GetStringValue(fmtOpts string) (valStr string)
- func (dst *StatDistinct) GetValue() (v interface{})
- func (dst *StatDistinct) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (dst *StatDistinct) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (dst *StatDistinct) RemEvent(evID string) (err error)
- type StatMetric
- func NewACC(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewACD(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewASR(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewDDC(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewPDD(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewStatAverage(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewStatDistinct(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewStatMetric(metricID string, minItems int, filterIDs []string) (sm StatMetric, err error)
- func NewStatSum(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewTCC(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- func NewTCD(minItems int, extraParams string, filterIDs []string) (StatMetric, error)
- type StatPDD
- func (pdd *StatPDD) AddEvent(ev *utils.CGREvent) (err error)
- func (pdd *StatPDD) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (pdd *StatPDD) GetCompressFactor(events map[string]int) map[string]int
- func (pdd *StatPDD) GetFilterIDs() []string
- func (pdd *StatPDD) GetFloat64Value() (v float64)
- func (pdd *StatPDD) GetStringValue(fmtOpts string) (valStr string)
- func (pdd *StatPDD) GetValue() (v interface{})
- func (pdd *StatPDD) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (pdd *StatPDD) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (pdd *StatPDD) RemEvent(evID string) (err error)
- type StatQueue
- func (sq *StatQueue) Compress(maxQL int64) bool
- func (sq *StatQueue) Expand()
- func (sq *StatQueue) Lock()
- func (sq *StatQueue) ProcessEvent(ev *utils.CGREvent, filterS *FilterS) (err error)
- func (sq *StatQueue) RLock()
- func (sq *StatQueue) RUnlock()
- func (sq *StatQueue) TenantID() string
- func (sq *StatQueue) Unlock()
- type StatQueueProfile
- type StatQueueWithCache
- type StatQueues
- type StatService
- func (ss *StatService) Call(serviceMethod string, args interface{}, reply interface{}) error
- func (sS *StatService) ListenAndServe(exitChan chan bool) error
- func (sS *StatService) Reload()
- func (sS *StatService) Shutdown() error
- func (sS *StatService) StartLoop()
- func (sS *StatService) StoreStatQueue(sq *StatQueue) (err error)
- func (sS *StatService) V1GetQueueFloatMetrics(args *utils.TenantID, reply *map[string]float64) (err error)
- func (sS *StatService) V1GetQueueIDs(tenant string, qIDs *[]string) (err error)
- func (sS *StatService) V1GetQueueStringMetrics(args *utils.TenantID, reply *map[string]string) (err error)
- func (sS *StatService) V1GetStatQueue(args *utils.TenantIDWithArgDispatcher, reply *StatQueue) (err error)
- func (sS *StatService) V1GetStatQueuesForEvent(args *StatsArgsProcessEvent, reply *[]string) (err error)
- func (sS *StatService) V1ProcessEvent(args *StatsArgsProcessEvent, reply *[]string) (err error)
- type StatSum
- func (sum *StatSum) AddEvent(ev *utils.CGREvent) (err error)
- func (sum *StatSum) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (sum *StatSum) GetCompressFactor(events map[string]int) map[string]int
- func (sum *StatSum) GetFilterIDs() []string
- func (sum *StatSum) GetFloat64Value() (v float64)
- func (sum *StatSum) GetStringValue(fmtOpts string) (valStr string)
- func (sum *StatSum) GetValue() (v interface{})
- func (sum *StatSum) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (sum *StatSum) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (sum *StatSum) RemEvent(evID string) (err error)
- type StatTCC
- func (tcc *StatTCC) AddEvent(ev *utils.CGREvent) (err error)
- func (tcc *StatTCC) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (tcc *StatTCC) GetCompressFactor(events map[string]int) map[string]int
- func (tcc *StatTCC) GetFilterIDs() []string
- func (tcc *StatTCC) GetFloat64Value() (v float64)
- func (tcc *StatTCC) GetStringValue(fmtOpts string) (valStr string)
- func (tcc *StatTCC) GetValue() (v interface{})
- func (tcc *StatTCC) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (tcc *StatTCC) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (tcc *StatTCC) RemEvent(evID string) (err error)
- type StatTCD
- func (tcd *StatTCD) AddEvent(ev *utils.CGREvent) (err error)
- func (tcd *StatTCD) Compress(queueLen int64, defaultID string) (eventIDs []string)
- func (tcd *StatTCD) GetCompressFactor(events map[string]int) map[string]int
- func (tcd *StatTCD) GetFilterIDs() []string
- func (tcd *StatTCD) GetFloat64Value() (v float64)
- func (tcd *StatTCD) GetStringValue(fmtOpts string) (valStr string)
- func (tcd *StatTCD) GetValue() (v interface{})
- func (tcd *StatTCD) LoadMarshaled(ms Marshaler, marshaled []byte) (err error)
- func (tcd *StatTCD) Marshal(ms Marshaler) (marshaled []byte, err error)
- func (tcd *StatTCD) RemEvent(evID string) (err error)
- type StatWithCompress
- type StatsArgsProcessEvent
- type StorDB
- type Storage
- type StoredStatQueue
- type Supplier
- type SupplierProfile
- type SupplierProfiles
- type SupplierService
- func (spS *SupplierService) ListenAndServe(exitChan chan bool) error
- func (spS *SupplierService) Shutdown() error
- func (spS *SupplierService) V1GetSupplierProfilesForEvent(args *utils.CGREventWithArgDispatcher, reply *[]*SupplierProfile) (err error)
- func (spS *SupplierService) V1GetSuppliers(args *ArgsGetSuppliers, reply *SortedSuppliers) (err error)
- type SupplierSortDispatcher
- type SupplierWithParams
- type SuppliersSorter
- type SureTaxRequest
- type SureTaxResponse
- type TBLVersion
- type TPAttribute
- type TPAttributes
- type TPCSVImporter
- type TPCharger
- type TPChargers
- type TPDispatcherHost
- type TPDispatcherHosts
- type TPDispatcherProfile
- type TPDispatcherProfiles
- type TPExporter
- type TPLoader
- type TPReader
- type Task
- type TenantRatingSubject
- type Threshold
- type ThresholdProfile
- type ThresholdService
- func (tS *ThresholdService) ListenAndServe(exitChan chan bool) error
- func (tS *ThresholdService) Reload()
- func (tS *ThresholdService) Shutdown() error
- func (tS *ThresholdService) StartLoop()
- func (tS *ThresholdService) StoreThreshold(t *Threshold) (err error)
- func (tS *ThresholdService) V1GetThreshold(tntID *utils.TenantID, t *Threshold) (err error)
- func (tS *ThresholdService) V1GetThresholdIDs(tenant string, tIDs *[]string) (err error)
- func (tS *ThresholdService) V1GetThresholdsForEvent(args *ArgsProcessEvent, reply *Thresholds) (err error)
- func (tS *ThresholdService) V1ProcessEvent(args *ArgsProcessEvent, reply *[]string) (err error)
- type ThresholdWithCache
- type Thresholds
- type TimeSpan
- func (ts *TimeSpan) AddIncrement(inc *Increment)
- func (ts *TimeSpan) CalculateCost() float64
- func (ts *TimeSpan) Contains(t time.Time) bool
- func (ts *TimeSpan) Equal(other *TimeSpan) bool
- func (ts *TimeSpan) GetCompressFactor() int
- func (ts *TimeSpan) GetDuration() time.Duration
- func (ts *TimeSpan) GetGroupEnd() time.Duration
- func (ts *TimeSpan) GetGroupStart() time.Duration
- func (ts *TimeSpan) GetTimeStartForIncrement(index int) time.Time
- func (ts *TimeSpan) GetUnitCost() float64
- func (ts *TimeSpan) GetUnitDuration() time.Duration
- func (ts *TimeSpan) IsPaid() (bool, int)
- func (ts *TimeSpan) Merge(other *TimeSpan) bool
- func (ts *TimeSpan) RoundToDuration(duration time.Duration)
- func (ts *TimeSpan) SetNewDurationIndex(nts *TimeSpan)
- func (ts *TimeSpan) SetRateInterval(interval *RateInterval)
- func (ts *TimeSpan) SharingSignature(other *TimeSpan) bool
- func (ts *TimeSpan) SplitByDay() (newTs *TimeSpan)
- func (ts *TimeSpan) SplitByDuration(duration time.Duration) *TimeSpan
- func (ts *TimeSpan) SplitByIncrement(index int) *TimeSpan
- func (ts *TimeSpan) SplitByRateInterval(i *RateInterval, data bool) (nts *TimeSpan)
- func (ts *TimeSpan) SplitByRatingPlan(rp *RatingInfo) (newTs *TimeSpan)
- type TimeSpans
- type TpAccountAction
- type TpAccountActions
- type TpAction
- type TpActionPlan
- type TpActionPlans
- type TpActionTrigger
- type TpActionTriggers
- type TpActions
- type TpDestination
- type TpDestinationRate
- type TpDestinationRates
- type TpDestinations
- type TpFilter
- type TpFilterS
- type TpRate
- type TpRates
- type TpRatingPlan
- type TpRatingPlans
- type TpRatingProfile
- type TpRatingProfiles
- type TpReader
- func (tpr *TpReader) GetLoadedIds(categ string) ([]string, error)
- func (tpr *TpReader) Init()
- func (tpr *TpReader) IsValid() bool
- func (tpr *TpReader) LoadAccountActions() (err error)
- func (tpr *TpReader) LoadAccountActionsFiltered(qriedAA *utils.TPAccountActions) error
- func (tpr *TpReader) LoadActionPlans() (err error)
- func (tpr *TpReader) LoadActionTriggers() (err error)
- func (tpr *TpReader) LoadActions() (err error)
- func (tpr *TpReader) LoadAll() (err error)
- func (tpr *TpReader) LoadAttributeProfiles() error
- func (tpr *TpReader) LoadAttributeProfilesFiltered(tag string) (err error)
- func (tpr *TpReader) LoadChargerProfiles() error
- func (tpr *TpReader) LoadChargerProfilesFiltered(tag string) (err error)
- func (tpr *TpReader) LoadDestinationRates() (err error)
- func (tpr *TpReader) LoadDestinations() (err error)
- func (tpr *TpReader) LoadDestinationsFiltered(tag string) (bool, error)
- func (tpr *TpReader) LoadDispatcherHosts() error
- func (tpr *TpReader) LoadDispatcherHostsFiltered(tag string) (err error)
- func (tpr *TpReader) LoadDispatcherProfiles() error
- func (tpr *TpReader) LoadDispatcherProfilesFiltered(tag string) (err error)
- func (tpr *TpReader) LoadFilters() error
- func (tpr *TpReader) LoadFiltersFiltered(tag string) error
- func (tpr *TpReader) LoadRates() (err error)
- func (tpr *TpReader) LoadRatingPlans() (err error)
- func (tpr *TpReader) LoadRatingPlansFiltered(tag string) (bool, error)
- func (tpr *TpReader) LoadRatingProfiles() (err error)
- func (tpr *TpReader) LoadRatingProfilesFiltered(qriedRpf *utils.TPRatingProfile) error
- func (tpr *TpReader) LoadResourceProfiles() error
- func (tpr *TpReader) LoadResourceProfilesFiltered(tag string) (err error)
- func (tpr *TpReader) LoadSharedGroups() error
- func (tpr *TpReader) LoadSharedGroupsFiltered(tag string, save bool) (err error)
- func (tpr *TpReader) LoadStats() error
- func (tpr *TpReader) LoadStatsFiltered(tag string) (err error)
- func (tpr *TpReader) LoadSupplierProfiles() error
- func (tpr *TpReader) LoadSupplierProfilesFiltered(tag string) (err error)
- func (tpr *TpReader) LoadThresholds() error
- func (tpr *TpReader) LoadThresholdsFiltered(tag string) (err error)
- func (tpr *TpReader) LoadTimings() (err error)
- func (tpr *TpReader) ReloadCache(caching string, verbose bool, argDispatcher *utils.ArgDispatcher) (err error)
- func (tpr *TpReader) ReloadScheduler(verbose bool) (err error)
- func (tpr *TpReader) RemoveFromDatabase(verbose, disable_reverse bool) (err error)
- func (tpr *TpReader) ShowStatistics()
- func (tpr *TpReader) WriteToDatabase(verbose, disable_reverse bool) (err error)
- type TpResource
- type TpResources
- type TpSharedGroup
- type TpSharedGroups
- type TpStat
- type TpStats
- type TpSupplier
- type TpSuppliers
- type TpThreshold
- type TpThresholds
- type TpTiming
- type TpTimings
- type UnitCounter
- type UnitCounters
- type UnitInfo
- type UsageRecord
- type UsageRecordWithArgDispatcher
- type V2SMCost
- type ValueFactor
- type Versions
- type WeightSorter
Constants ¶
const ( // these might be better in the confs under optimizations section RECURSION_MAX_DEPTH = 3 MIN_PREFIX_MATCH = 1 FALLBACK_SUBJECT = utils.ANY DB = "map" )
const ( // Freswitch event property names FS_CDR_MAP = "variables" FS_UUID = "uuid" // -Unique ID for this call leg FS_CALL_DEST_NR = "dialed_extension" FS_PARK_TIME = "start_epoch" FS_SETUP_TIME = "start_epoch" FS_ANSWER_TIME = "answer_epoch" FS_HANGUP_TIME = "end_epoch" FS_DURATION = "billsec" FS_USERNAME = "user_name" FS_CDR_SOURCE = "freeswitch_json" FS_SIP_REQUSER = "sip_req_user" // Apps like FusionPBX do not set dialed_extension, alternative being destination_number but that comes in customer profile, not in vars FS_PROGRESS_MEDIAMSEC = "progress_mediamsec" FS_PROGRESSMS = "progressmsec" FsUsername = "username" FsIPv4 = "FreeSWITCH-IPv4" )
const ( MINE_PREFIX = "*mine_" STRATEGY_MINE_LOWEST = "*mine_lowest" STRATEGY_MINE_HIGHEST = "*mine_highest" STRATEGY_MINE_RANDOM = "*mine_random" STRATEGY_LOWEST = "*lowest" STRATEGY_HIGHEST = "*highest" STRATEGY_RANDOM = "*random" )
const ( ColDst = "destinations" ColRds = "reverse_destinations" ColAct = "actions" ColApl = "action_plans" ColAAp = "account_action_plans" ColTsk = "tasks" ColAtr = "action_triggers" ColRpl = "rating_plans" ColRpf = "rating_profiles" ColAcc = "accounts" ColShg = "shared_groups" ColLht = "load_history" ColVer = "versions" ColRsP = "resource_profiles" ColRFI = "request_filter_indexes" ColTmg = "timings" ColRes = "resources" ColSqs = "statqueues" ColSqp = "statqueue_profiles" ColTps = "threshold_profiles" ColThs = "thresholds" ColFlt = "filters" ColSpp = "supplier_profiles" ColAttr = "attribute_profiles" ColCDRs = "cdrs" ColCpp = "charger_profiles" ColDpp = "dispatcher_profiles" ColDph = "dispatcher_hosts" ColLID = "load_ids" )
Mongo collections names
const (
FORMAT = "2006-1-2 15:04:05 MST"
)
const STATS_NA = -1.0
to be moved in utils
Variables ¶
var ( DestinationsCSVContent = `` /* 247-byte string literal not displayed */ TimingsCSVContent = `` /* 157-byte string literal not displayed */ RatesCSVContent = `` /* 402-byte string literal not displayed */ DestinationRatesCSVContent = `` /* 794-byte string literal not displayed */ RatingPlansCSVContent = `` /* 686-byte string literal not displayed */ RatingProfilesCSVContent = `` /* 1355-byte string literal not displayed */ SG1,*any,*lowest, SG2,*any,*lowest,one SG3,*any,*lowest, ` ActionsCSVContent = `` /* 1758-byte string literal not displayed */ ActionPlansCSVContent = `` /* 325-byte string literal not displayed */ ActionTriggersCSVContent = `` /* 425-byte string literal not displayed */ AccountActionsCSVContent = `` /* 645-byte string literal not displayed */ ResourcesCSVContent = `` /* 336-byte string literal not displayed */ StatsCSVContent = `` /* 554-byte string literal not displayed */ ThresholdsCSVContent = `` /* 261-byte string literal not displayed */ FiltersCSVContent = `` /* 527-byte string literal not displayed */ SuppliersCSVContent = `` /* 641-byte string literal not displayed */ AttributesCSVContent = `` /* 299-byte string literal not displayed */ ChargersCSVContent = `` /* 167-byte string literal not displayed */ DispatcherCSVContent = `` /* 261-byte string literal not displayed */ DispatcherHostCSVContent = `` /* 136-byte string literal not displayed */ )
var ( CGRIDLow = strings.ToLower(utils.CGRID) RunIDLow = strings.ToLower(utils.RunID) OrderIDLow = strings.ToLower(utils.OrderID) OriginHostLow = strings.ToLower(utils.OriginHost) OriginIDLow = strings.ToLower(utils.OriginID) ToRLow = strings.ToLower(utils.ToR) CDRHostLow = strings.ToLower(utils.OriginHost) CDRSourceLow = strings.ToLower(utils.Source) RequestTypeLow = strings.ToLower(utils.RequestType) TenantLow = strings.ToLower(utils.Tenant) CategoryLow = strings.ToLower(utils.Category) AccountLow = strings.ToLower(utils.Account) SubjectLow = strings.ToLower(utils.Subject) SupplierLow = strings.ToLower(utils.SUPPLIER) DisconnectCauseLow = strings.ToLower(utils.DISCONNECT_CAUSE) SetupTimeLow = strings.ToLower(utils.SetupTime) AnswerTimeLow = strings.ToLower(utils.AnswerTime) CreatedAtLow = strings.ToLower(utils.CreatedAt) UpdatedAtLow = strings.ToLower(utils.UpdatedAt) UsageLow = strings.ToLower(utils.Usage) PDDLow = strings.ToLower(utils.PDD) CostDetailsLow = strings.ToLower(utils.CostDetails) DestinationLow = strings.ToLower(utils.Destination) CostLow = strings.ToLower(utils.COST) CostSourceLow = strings.ToLower(utils.CostSource) )
var Cache *ltcache.TransCache
Cache is the global cache used
Functions ¶
func CachedDestHasPrefix ¶
Reverse search in cache to see if prefix belongs to destination id
func CheckVersions ¶
CheckVersions returns error if the db needs migration
func FilterToTPFilter ¶
func FilterToTPFilter(f *Filter) (tpFltr *utils.TPFilterProfile)
func ForceKillProcName ¶
func GetDefaultEmptyCacheStats ¶
func GetDefaultEmptyCacheStats() map[string]*ltcache.CacheStats
func HttpJsonPost ¶
HttpJsonPost posts without automatic failover
func InitDataDb ¶
func InitStorDb ¶
func KillEngine ¶
func KillProcName ¶
func LoadTariffPlanFromFolder ¶
func LoadTariffPlanFromFolder(tpPath, timezone string, dm *DataManager, disable_reverse bool, cacheConns, schedConns []string) error
func MapTPAccountActions ¶
func MapTPAccountActions(s []*utils.TPAccountActions) (map[string]*utils.TPAccountActions, error)
func MapTPActionTimings ¶
func MapTPActionTimings(s []*utils.TPActionPlan) map[string][]*utils.TPActionTiming
func MapTPActionTriggers ¶
func MapTPActionTriggers(s []*utils.TPActionTriggers) map[string][]*utils.TPActionTrigger
func MapTPDestinationRates ¶
func MapTPDestinationRates(s []*utils.TPDestinationRate) (map[string]*utils.TPDestinationRate, error)
func MapTPRatingPlanBindings ¶
func MapTPRatingPlanBindings(s []*utils.TPRatingPlan) map[string][]*utils.TPRatingPlanBinding
func MapTPRatingProfiles ¶
func MapTPRatingProfiles(s []*utils.TPRatingProfile) (map[string]*utils.TPRatingProfile, error)
func MapTPSharedGroup ¶
func MapTPSharedGroup(s []*utils.TPSharedGroups) map[string][]*utils.TPSharedGroup
func MapTPTimings ¶
func MatchingItemIDsForEvent ¶
func MatchingItemIDsForEvent(ev map[string]interface{}, stringFldIDs, prefixFldIDs *[]string, dm *DataManager, cacheID, itemIDPrefix string, indexedSelects, nestedFields bool) (itemIDs utils.StringMap, err error)
MatchingItemIDsForEvent returns the list of item IDs matching fieldName/fieldValue for an event fieldIDs limits the fields which are checked against indexes helper on top of dataDB.MatchFilterIndex, adding utils.ANY to list of fields queried
func NewCsvFile ¶
func NewCsvFile() csvReaderCloser
func NewCsvString ¶
func NewCsvString() csvReaderCloser
func NewRPCPool ¶
func NewRPCPool(dispatchStrategy string, keyPath, certPath, caPath string, connAttempts, reconnects int, connectTimeout, replyTimeout time.Duration, rpcConnCfgs []*config.RemoteHost, internalConnChan chan rpcclient.ClientConnector, lazyConnect bool) (*rpcclient.RPCPool, error)
NewRPCPool returns a new pool of connection with the given configuration
func OverwriteDBVersions ¶
OverwriteDBVersions sets the version overwriting them
func PjsuaCallUri ¶
func SetCdrStorage ¶
func SetCdrStorage(cStorage CdrStorage)
SetCdrStorage sets the database for CDR storing, used by *cdrlog in first place
func SetConnManager ¶
func SetConnManager(conMgr *ConnManager)
SetConnManager is the exported method to set the connectionManager used when operate on an account.
func SetDBVersions ¶
SetDBVersions sets the version without overwriting them
func SetDataStorage ¶
func SetDataStorage(dm2 *DataManager)
SetDataStorage is the exported method to set the storage getter.
func SetFailedPostCacheTTL ¶
SetFailedPostCacheTTL recreates the failed cache
func SetRoundingDecimals ¶
func SetRoundingDecimals(rd int)
SetRoundingDecimals sets the global rounding method and decimal precision for GetCost method
func SetRpSubjectPrefixMatching ¶
func SetRpSubjectPrefixMatching(flag bool)
SetRpSubjectPrefixMatching sets rpSubjectPrefixMatching (is thread safe)
func StartEngine ¶
Return reference towards the command started so we can stop it if necessary
func StartPjsuaListener ¶
Returns file reference where we can write to control pjsua in terminal
func SureTaxProcessCdr ¶
func TimeDecodeValue1 ¶
func TimeDecodeValue1(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
Types ¶
type AMQPPoster ¶
type AMQPPoster struct { sync.Mutex // protect connection // contains filtered or unexported fields }
AMQPPoster used to post cdrs to amqp
func NewAMQPPoster ¶
func NewAMQPPoster(dialURL string, attempts int) (*AMQPPoster, error)
NewAMQPPoster creates a new amqp poster "amqp://guest:guest@localhost:5672/?queueID=cgrates_cdrs"
type AMQPv1Poster ¶
AMQPv1Poster a poster for amqpv1
type Account ¶
type Account struct { ID string BalanceMap map[string]Balances UnitCounters UnitCounters ActionTriggers ActionTriggers AllowNegative bool Disabled bool UpdateTime time.Time // contains filtered or unexported fields }
Account structure containing information about user's credit (minutes, cents, sms...).' This can represent a user or a shared group.
func (*Account) AsAccountSummary ¶
func (acc *Account) AsAccountSummary() *AccountSummary
AsAccountSummary converts the account into AccountSummary
func (*Account) AsOldStructure ¶
func (acc *Account) AsOldStructure() interface{}
AsOldStructure used in some api for transition
func (*Account) CleanExpiredStuff ¶
func (acc *Account) CleanExpiredStuff()
CleanExpiredStuff removed expired balances and actiontriggers
func (*Account) DebitConnectionFee ¶
func (acc *Account) DebitConnectionFee(cc *CallCost, usefulMoneyBalances Balances, count bool, block bool) (bool, Balance)
DebitConnectionFee debits the connection fee
func (*Account) ExecuteActionTriggers ¶
ExecuteActionTriggers scans the action triggers and execute the actions for which trigger is met
func (*Account) GetBalanceWithID ¶
GetBalanceWithID returns a Balance given balance type and balance ID
func (*Account) GetDefaultMoneyBalance ¶
GetDefaultMoneyBalance returns the defaultmoney balance
func (*Account) GetSharedGroups ¶
GetSharedGroups returns the shared groups that this user balance belnongs to
func (*Account) GetUniqueSharedGroupMembers ¶
func (acc *Account) GetUniqueSharedGroupMembers(cd *CallDescriptor) (utils.StringMap, error)
GetUniqueSharedGroupMembers returns the acounts from the group
func (*Account) InitCounters ¶
func (acc *Account) InitCounters()
InitCounters creates counters for all triggered actions
func (*Account) Publish ¶
func (acc *Account) Publish()
Publish sends the account to stats and threshold
func (*Account) ResetActionTriggers ¶
ResetActionTriggers marks all action trigers as ready for execution If the action is not nil it acts like a filter
func (*Account) SetRecurrent ¶
SetRecurrent sets/unsets recurrent flag for action triggers
type AccountSummary ¶
type AccountSummary struct { Tenant string ID string BalanceSummaries BalanceSummaries AllowNegative bool Disabled bool }
AccountSummary contains compressed information about an Account
func NewAccountSummaryFromJSON ¶
func NewAccountSummaryFromJSON(jsn string) (acntSummary *AccountSummary, err error)
NewAccountSummaryFromJSON creates a new AcccountSummary from a json string
func (*AccountSummary) Clone ¶
func (as *AccountSummary) Clone() (cln *AccountSummary)
Clone creates a copy of the structure
func (*AccountSummary) FieldAsInterface ¶
func (as *AccountSummary) FieldAsInterface(fldPath []string) (val interface{}, err error)
FieldAsInterface func to help EventCost FieldAsInterface
type Accounting ¶
type Accounting map[string]*BalanceCharge
Accounting the map of debited balances
func (Accounting) Clone ¶
func (cbs Accounting) Clone() (cln Accounting)
Clone creates a copy of Accounting
func (*Accounting) FieldAsInterface ¶
func (cbs *Accounting) FieldAsInterface(fldPath []string) (val interface{}, err error)
FieldAsInterface func to help EventCost FieldAsInterface
func (Accounting) GetIDWithSet ¶
func (cbs Accounting) GetIDWithSet(cb *BalanceCharge) string
GetIDWithSet attempts to retrieve the UUID of a matching data or create a new one
type Action ¶
type Action struct { Id string ActionType string ExtraParameters string Filter string ExpirationString string // must stay as string because it can have relative values like 1month Weight float64 Balance *BalanceFilter // contains filtered or unexported fields }
Action will be filled for each tariff plan with the bonus value for received calls minutes.
type ActionPlan ¶
type ActionPlan struct { Id string // informative purpose only AccountIDs utils.StringMap ActionTimings []*ActionTiming }
func (*ActionPlan) Clone ¶
func (apl *ActionPlan) Clone() (interface{}, error)
Clone clones *ActionPlan
func (*ActionPlan) RemoveAccountID ¶
func (apl *ActionPlan) RemoveAccountID(accID string) (found bool)
type ActionTiming ¶
type ActionTiming struct { Uuid string Timing *RateInterval ActionsID string ExtraData interface{} Weight float64 // contains filtered or unexported fields }
func (*ActionTiming) Clone ¶
func (at *ActionTiming) Clone() (cln *ActionTiming)
Clone clones ActionTiming
func (*ActionTiming) Execute ¶
func (at *ActionTiming) Execute(successActions, failedActions chan *Action) (err error)
Execute will execute all actions in an action plan Reports on success/fail via channel if != nil
func (*ActionTiming) GetAccountIDs ¶
func (at *ActionTiming) GetAccountIDs() utils.StringMap
func (*ActionTiming) GetActionPlanID ¶
func (at *ActionTiming) GetActionPlanID() string
func (*ActionTiming) GetNextStartTime ¶
func (at *ActionTiming) GetNextStartTime(now time.Time) (t time.Time)
func (*ActionTiming) GetNextStartTimeOld ¶
func (at *ActionTiming) GetNextStartTimeOld(now time.Time) (t time.Time)
To be deleted after the above solution proves reliable
func (*ActionTiming) IsASAP ¶
func (at *ActionTiming) IsASAP() bool
func (*ActionTiming) RemoveAccountID ¶
func (at *ActionTiming) RemoveAccountID(acntID string) (found bool)
func (*ActionTiming) ResetStartTimeCache ¶
func (at *ActionTiming) ResetStartTimeCache()
func (*ActionTiming) SetAccountIDs ¶
func (at *ActionTiming) SetAccountIDs(accIDs utils.StringMap)
func (*ActionTiming) SetActionPlanID ¶
func (at *ActionTiming) SetActionPlanID(id string)
func (*ActionTiming) SetActions ¶
func (at *ActionTiming) SetActions(as Actions)
func (*ActionTiming) Tasks ¶
func (at *ActionTiming) Tasks() (tsks []*Task)
Tasks converts an ActionTiming into multiple Tasks
type ActionTimingPriorityList ¶
type ActionTimingPriorityList []*ActionTiming
Structure to store actions according to execution time and weight
func (ActionTimingPriorityList) Len ¶
func (atpl ActionTimingPriorityList) Len() int
func (ActionTimingPriorityList) Less ¶
func (atpl ActionTimingPriorityList) Less(i, j int) bool
func (ActionTimingPriorityList) Sort ¶
func (atpl ActionTimingPriorityList) Sort()
func (ActionTimingPriorityList) Swap ¶
func (atpl ActionTimingPriorityList) Swap(i, j int)
type ActionTimingWeightOnlyPriorityList ¶
type ActionTimingWeightOnlyPriorityList []*ActionTiming
Structure to store actions according to weight
func (ActionTimingWeightOnlyPriorityList) Len ¶
func (atpl ActionTimingWeightOnlyPriorityList) Len() int
func (ActionTimingWeightOnlyPriorityList) Less ¶
func (atpl ActionTimingWeightOnlyPriorityList) Less(i, j int) bool
func (ActionTimingWeightOnlyPriorityList) Sort ¶
func (atpl ActionTimingWeightOnlyPriorityList) Sort()
func (ActionTimingWeightOnlyPriorityList) Swap ¶
func (atpl ActionTimingWeightOnlyPriorityList) Swap(i, j int)
type ActionTrigger ¶
type ActionTrigger struct { ID string // original csv tag UniqueID string // individual id ThresholdType string //*min_event_counter, *max_event_counter, *min_balance_counter, *max_balance_counter, *min_balance, *max_balance, *balance_expired ThresholdValue float64 Recurrent bool // reset excuted flag each run MinSleep time.Duration // Minimum duration between two executions in case of recurrent triggers ExpirationDate time.Time ActivationDate time.Time //BalanceType string // *monetary/*voice etc Balance *BalanceFilter Weight float64 ActionsID string MinQueuedItems int // Trigger actions only if this number is hit (stats only) Executed bool LastExecutionTime time.Time }
func (*ActionTrigger) Clone ¶
func (at *ActionTrigger) Clone() *ActionTrigger
makes a shallow copy of the receiver
func (*ActionTrigger) CreateBalance ¶
func (at *ActionTrigger) CreateBalance() *Balance
func (*ActionTrigger) Equals ¶
func (at *ActionTrigger) Equals(oat *ActionTrigger) bool
func (*ActionTrigger) Execute ¶
func (at *ActionTrigger) Execute(ub *Account) (err error)
func (*ActionTrigger) Match ¶
func (at *ActionTrigger) Match(a *Action) bool
returns true if the field of the action timing are equeal to the non empty fields of the action
type ActionTriggers ¶
type ActionTriggers []*ActionTrigger
Structure to store actions according to weight
func (ActionTriggers) Clone ¶
func (atpl ActionTriggers) Clone() ActionTriggers
func (ActionTriggers) Len ¶
func (atpl ActionTriggers) Len() int
func (ActionTriggers) Less ¶
func (atpl ActionTriggers) Less(j, i int) bool
we need higher weights earlyer in the list
func (ActionTriggers) Sort ¶
func (atpl ActionTriggers) Sort()
func (ActionTriggers) Swap ¶
func (atpl ActionTriggers) Swap(i, j int)
type Actions ¶
type Actions []*Action
Actions used to store actions according to weight
type ArgRateCDRs ¶
type ArgRateCDRs struct { Flags []string utils.RPCCDRsFilter *utils.ArgDispatcher *utils.TenantArg }
ArgRateCDRs a cdr with extra flags
type ArgV1ProcessEvent ¶
type ArgV1ProcessEvent struct { Flags []string utils.CGREvent *utils.ArgDispatcher }
ArgV1ProcessEvent is the CGREvent with proccesing Flags
type ArgsGetSuppliers ¶
type ArgsProcessEvent ¶
type ArgsProcessEvent struct { ThresholdIDs []string *utils.CGREvent *utils.ArgDispatcher }
type ArgsV2CDRSStoreSMCost ¶
type AttrArgsProcessEvent ¶
type AttrArgsProcessEvent struct { AttributeIDs []string Context *string // attach the event to a context ProcessRuns *int // number of loops for ProcessEvent *utils.CGREvent *utils.ArgDispatcher }
AttrArgsProcessEvent arguments used for proccess event
type AttrCDRSStoreSMCost ¶
type AttrSProcessEventReply ¶
type AttrSProcessEventReply struct { MatchedProfiles []string AlteredFields []string CGREvent *utils.CGREvent // contains filtered or unexported fields }
AttrSProcessEventReply reply used for proccess event
func (*AttrSProcessEventReply) Digest ¶
func (attrReply *AttrSProcessEventReply) Digest() (rplyDigest string)
Digest returns serialized version of alteredFields in AttrSProcessEventReply format fldName1:fldVal1,fldName2:fldVal2
type Attribute ¶
type Attribute struct { FilterIDs []string Path string Type string Value config.RSRParsers }
Attribute used by AttributeProfile to describe a single attribute
type AttributeProfile ¶
type AttributeProfile struct { Tenant string ID string Contexts []string // bind this AttributeProfile to multiple contexts FilterIDs []string ActivationInterval *utils.ActivationInterval // Activation interval Attributes []*Attribute Blocker bool // blocker flag to stop processing on multiple runs Weight float64 }
AttributeProfile the profile definition for the attributes
func APItoAttributeProfile ¶
func APItoAttributeProfile(tpAttr *utils.TPAttributeProfile, timezone string) (attrPrf *AttributeProfile, err error)
func NewAttributeFromInline ¶
func NewAttributeFromInline(tenant, inlnRule string) (attr *AttributeProfile, err error)
NewAttributeFromInline parses an inline rule into a compiled AttributeProfile
func (*AttributeProfile) Compile ¶
func (ap *AttributeProfile) Compile() error
Compile is a wrapper for convenience setting up the AttributeProfile
func (*AttributeProfile) TenantID ¶
func (ap *AttributeProfile) TenantID() string
TenantID returns the tenant wit the ID
type AttributeProfiles ¶
type AttributeProfiles []*AttributeProfile
AttributeProfiles is a sortable list of Attribute profiles
func (AttributeProfiles) Sort ¶
func (aps AttributeProfiles) Sort()
Sort is part of sort interface, sort based on Weight
type AttributeService ¶
type AttributeService struct {
// contains filtered or unexported fields
}
AttributeService the service for the API
func NewAttributeService ¶
func NewAttributeService(dm *DataManager, filterS *FilterS, cgrcfg *config.CGRConfig) (*AttributeService, error)
NewAttributeService returns a new AttributeService
func (*AttributeService) ListenAndServe ¶
func (alS *AttributeService) ListenAndServe(exitChan chan bool) (err error)
ListenAndServe will initialize the service
func (*AttributeService) Shutdown ¶
func (alS *AttributeService) Shutdown() (err error)
Shutdown is called to shutdown the service
func (*AttributeService) V1GetAttributeForEvent ¶
func (alS *AttributeService) V1GetAttributeForEvent(args *AttrArgsProcessEvent, attrPrfl *AttributeProfile) (err error)
V1GetAttributeForEvent returns the AttributeProfile that matches the event
func (*AttributeService) V1ProcessEvent ¶
func (alS *AttributeService) V1ProcessEvent(args *AttrArgsProcessEvent, reply *AttrSProcessEventReply) (err error)
V1ProcessEvent proccess the event and returns the result
type BSONMarshaler ¶
type BSONMarshaler struct{}
func (*BSONMarshaler) Marshal ¶
func (jm *BSONMarshaler) Marshal(v interface{}) ([]byte, error)
func (*BSONMarshaler) Unmarshal ¶
func (jm *BSONMarshaler) Unmarshal(data []byte, v interface{}) error
type Balance ¶
type Balance struct { Uuid string //system wide unique ID string // account wide unique Value float64 ExpirationDate time.Time Weight float64 DestinationIDs utils.StringMap RatingSubject string Categories utils.StringMap Timings []*RITiming TimingIDs utils.StringMap Disabled bool Factor ValueFactor Blocker bool // contains filtered or unexported fields }
Can hold different units as seconds or monetary
func (*Balance) AsBalanceSummary ¶
func (b *Balance) AsBalanceSummary(typ string) *BalanceSummary
Converts the balance towards compressed information to be displayed
func (*Balance) GetCost ¶
func (b *Balance) GetCost(cd *CallDescriptor, getStandardIfEmpty bool) (*CallCost, error)
Gets the cost using balance RatingSubject if present otherwize retuns a callcost obtained using standard rating
func (*Balance) GetMinutesForCredit ¶
func (b *Balance) GetMinutesForCredit(origCD *CallDescriptor, initialCredit float64) (duration time.Duration, credit float64)
Returns the available number of seconds for a specified credit
func (*Balance) HardMatchFilter ¶
func (b *Balance) HardMatchFilter(o *BalanceFilter, skipIds bool) bool
func (*Balance) HasDestination ¶
func (*Balance) IsExpiredAt ¶
IsExpiredAt check if ExpirationDate is before time t
func (*Balance) MatchActionTrigger ¶
func (b *Balance) MatchActionTrigger(at *ActionTrigger) bool
func (*Balance) MatchCategory ¶
func (*Balance) MatchDestination ¶
func (*Balance) MatchFilter ¶
func (b *Balance) MatchFilter(o *BalanceFilter, skipIds, skipExpiry bool) bool
func (*Balance) SubstractValue ¶
type BalanceCharge ¶
type BalanceCharge struct { AccountID string // keep reference for shared balances BalanceUUID string // balance charged RatingID string // special price applied on this balance Units float64 // number of units charged ExtraChargeID string // used in cases when paying *voice with *monetary }
BalanceCharge represents one unit charged to a balance
func (*BalanceCharge) Clone ¶
func (bc *BalanceCharge) Clone() *BalanceCharge
Clone creates a copy of BalanceCharge
func (*BalanceCharge) Equals ¶
func (bc *BalanceCharge) Equals(oBC *BalanceCharge) bool
Equals returns if the structure have the same fields
func (*BalanceCharge) FieldAsInterface ¶
func (bc *BalanceCharge) FieldAsInterface(fldPath []string) (val interface{}, err error)
FieldAsInterface func to help EventCost FieldAsInterface
type BalanceFilter ¶
type BalanceFilter struct { Uuid *string ID *string Type *string Value *utils.ValueFormula ExpirationDate *time.Time Weight *float64 DestinationIDs *utils.StringMap RatingSubject *string Categories *utils.StringMap TimingIDs *utils.StringMap Timings []*RITiming Disabled *bool Factor *ValueFactor Blocker *bool }
func NewBalanceFilter ¶
func NewBalanceFilter(filter map[string]interface{}, defaultTimezone string) (bf *BalanceFilter, err error)
NewBalanceFilter creates a new BalanceFilter based on given filter
func (*BalanceFilter) Clone ¶
func (bf *BalanceFilter) Clone() *BalanceFilter
func (*BalanceFilter) CreateBalance ¶
func (bp *BalanceFilter) CreateBalance() *Balance
func (*BalanceFilter) EmptyExpirationDate ¶
func (bp *BalanceFilter) EmptyExpirationDate() bool
func (*BalanceFilter) Equal ¶
func (bp *BalanceFilter) Equal(o *BalanceFilter) bool
func (*BalanceFilter) GetBlocker ¶
func (bp *BalanceFilter) GetBlocker() bool
func (*BalanceFilter) GetCategories ¶
func (bp *BalanceFilter) GetCategories() utils.StringMap
func (*BalanceFilter) GetDestinationIDs ¶
func (bp *BalanceFilter) GetDestinationIDs() utils.StringMap
func (*BalanceFilter) GetDisabled ¶
func (bp *BalanceFilter) GetDisabled() bool
func (*BalanceFilter) GetExpirationDate ¶
func (bp *BalanceFilter) GetExpirationDate() time.Time
func (*BalanceFilter) GetFactor ¶
func (bp *BalanceFilter) GetFactor() ValueFactor
func (*BalanceFilter) GetID ¶
func (bp *BalanceFilter) GetID() string
func (*BalanceFilter) GetRatingSubject ¶
func (bp *BalanceFilter) GetRatingSubject() string
func (*BalanceFilter) GetSharedGroups ¶
func (bp *BalanceFilter) GetSharedGroups() utils.StringMap
func (*BalanceFilter) GetTimingIDs ¶
func (bp *BalanceFilter) GetTimingIDs() utils.StringMap
func (*BalanceFilter) GetType ¶
func (bp *BalanceFilter) GetType() string
func (*BalanceFilter) GetUuid ¶
func (bp *BalanceFilter) GetUuid() string
func (*BalanceFilter) GetValue ¶
func (bp *BalanceFilter) GetValue() float64
func (*BalanceFilter) GetWeight ¶
func (bp *BalanceFilter) GetWeight() float64
func (*BalanceFilter) LoadFromBalance ¶
func (bf *BalanceFilter) LoadFromBalance(b *Balance) *BalanceFilter
func (*BalanceFilter) ModifyBalance ¶
func (bf *BalanceFilter) ModifyBalance(b *Balance)
func (*BalanceFilter) SetValue ¶
func (bp *BalanceFilter) SetValue(v float64)
type BalanceSummaries ¶
type BalanceSummaries []*BalanceSummary
BalanceSummaries is a list of BalanceSummaries
func (BalanceSummaries) BalanceSummaryWithUUD ¶
func (bs BalanceSummaries) BalanceSummaryWithUUD(bsUUID string) (b *BalanceSummary)
BalanceSummaryWithUUD returns a BalanceSummary based on an UUID
type BalanceSummary ¶
type BalanceSummary struct { UUID string // Balance UUID ID string // Balance ID if not defined Type string // *voice, *data, etc Value float64 Disabled bool }
BalanceSummary represents compressed information about a balance
func (*BalanceSummary) FieldAsInterface ¶
func (bl *BalanceSummary) FieldAsInterface(fldPath []string) (val interface{}, err error)
FieldAsInterface func to help EventCost FieldAsInterface
type Balances ¶
type Balances []*Balance
Structure to store minute buckets according to weight, precision or price.
func (Balances) GetBalance ¶
func (Balances) GetTotalValue ¶
func (Balances) HasBalance ¶
func (Balances) SaveDirtyBalances ¶
type BincMarshaler ¶
type BincMarshaler struct {
// contains filtered or unexported fields
}
func NewBincMarshaler ¶
func NewBincMarshaler() *BincMarshaler
func (*BincMarshaler) Marshal ¶
func (bm *BincMarshaler) Marshal(v interface{}) (b []byte, err error)
func (*BincMarshaler) Unmarshal ¶
func (bm *BincMarshaler) Unmarshal(data []byte, v interface{}) error
type CDR ¶
type CDR struct { CGRID string RunID string OrderID int64 // Stor order id used as export order id OriginHost string // represents the IP address of the host generating the CDR (automatically populated by the server) Source string // formally identifies the source of the CDR (free form field) OriginID string // represents the unique accounting id given by the telecom switch generating the CDR ToR string // type of record, meta-field, should map to one of the TORs hardcoded inside the server <*voice|*data|*sms|*generic> RequestType string // matching the supported request types by the **CGRateS**, accepted values are hardcoded in the server <prepaid|postpaid|pseudoprepaid|rated>. Tenant string // tenant whom this record belongs Category string // free-form filter for this record, matching the category defined in rating profiles. Account string // account id (accounting subsystem) the record should be attached to Subject string // rating subject (rating subsystem) this record should be attached to Destination string // destination to be charged SetupTime time.Time // set-up time of the event. Supported formats: datetime RFC3339 compatible, SQL datetime (eg: MySQL), unix timestamp. AnswerTime time.Time // answer time of the event. Supported formats: datetime RFC3339 compatible, SQL datetime (eg: MySQL), unix timestamp. Usage time.Duration // event usage information (eg: in case of tor=*voice this will represent the total duration of a call) ExtraFields map[string]string // Extra fields to be stored in CDR ExtraInfo string // Container for extra information related to this CDR, eg: populated with error reason in case of error on calculation Partial bool // Used for partial record processing by ERs PreRated bool // Mark the CDR as rated so we do not process it during rating CostSource string // The source of this cost Cost float64 // CostDetails *EventCost // Attach the cost details to CDR when possible }
func NewCDRFromExternalCDR ¶
func NewCDRFromExternalCDR(extCdr *ExternalCDR, timezone string) (*CDR, error)
func NewCDRFromSQL ¶
NewCDRFromSQL converts the CDRsql into CDR
func NewCDRWithDefaults ¶
func (*CDR) AddDefaults ¶
AddDefaults will add missing information based on other fields
func (*CDR) AsCGREvent ¶
func (*CDR) AsExportMap ¶
func (cdr *CDR) AsExportMap(exportFields []*config.FCTemplate, httpSkipTLSCheck bool, groupedCDRs []*CDR, filterS *FilterS) (expMap map[string]string, err error)
AsExportMap converts the CDR into a map[string]string based on export template Used in real-time replication as well as remote exports
func (*CDR) AsExportRecord ¶
func (cdr *CDR) AsExportRecord(exportFields []*config.FCTemplate, httpSkipTLSCheck bool, groupedCDRs []*CDR, filterS *FilterS) (expRecord []string, err error)
AsExportRecord is used in place where we need to export the CDR based on an export template ExportRecord is a []string to keep it compatible with encoding/csv Writer
func (*CDR) AsExternalCDR ¶
func (cdr *CDR) AsExternalCDR() *ExternalCDR
func (*CDR) AsMapStringIface ¶
func (*CDR) ComputeCGRID ¶
func (cdr *CDR) ComputeCGRID()
func (*CDR) CostDetailsJson ¶
func (*CDR) FieldAsString ¶
FieldAsString is used to retrieve fields as string, primary fields are const labeled
func (*CDR) FieldsAsString ¶
func (cdr *CDR) FieldsAsString(rsrFlds config.RSRParsers) string
FieldsAsString concatenates values of multiple fields defined in template, used eg in CDR templates
func (*CDR) FormatCost ¶
FormatCost formats the cost as string on export
type CDRExporter ¶
CDRExporter used to export the CDRs
func NewCDRExporter ¶
func NewCDRExporter(cdrs []*CDR, exportTemplate *config.CdreCfg, exportFormat, exportPath, fallbackPath, exportID string, synchronous bool, attempts int, fieldSeparator rune, httpSkipTLSCheck bool, attrsConns []string, filterS *FilterS) (*CDRExporter, error)
NewCDRExporter returns a new CDRExporter
func (*CDRExporter) ExportCDRs ¶
func (cdre *CDRExporter) ExportCDRs() (err error)
ExportCDRs exports the given CDRs
func (*CDRExporter) FirstOrderID ¶
func (cdre *CDRExporter) FirstOrderID() int64
FirstOrderID returns the first exported Cdr OrderId
func (*CDRExporter) LastOrderID ¶
func (cdre *CDRExporter) LastOrderID() int64
LastOrderID return the last exported Cdr OrderId
func (*CDRExporter) NegativeExports ¶
func (cdre *CDRExporter) NegativeExports() map[string]string
NegativeExports returns the failed exported CGRIDs together with the reason
func (*CDRExporter) PositiveExports ¶
func (cdre *CDRExporter) PositiveExports() []string
PositiveExports returns the successfully exported CGRIDs
func (*CDRExporter) TotalCost ¶
func (cdre *CDRExporter) TotalCost() float64
TotalCost returns the total cost in the exported cdrs
func (*CDRExporter) TotalExportedCdrs ¶
func (cdre *CDRExporter) TotalExportedCdrs() int
TotalExportedCdrs returns the number of exported CDRs
type CDRServer ¶
type CDRServer struct {
// contains filtered or unexported fields
}
CDRServer stores and rates CDRs
func NewCDRServer ¶
func NewCDRServer(cgrCfg *config.CGRConfig, storDBChan chan StorDB, dm *DataManager, filterS *FilterS, connMgr *ConnManager) *CDRServer
NewCDRServer is a constructor for CDRServer
func (*CDRServer) ListenAndServe ¶
ListenAndServe listen for storbd reload
func (*CDRServer) RegisterHandlersToServer ¶
RegisterHandlersToServer is called by cgr-engine to register HTTP URL handlers
func (*CDRServer) V1CountCDRs ¶
func (cdrS *CDRServer) V1CountCDRs(args *utils.RPCCDRsFilterWithArgDispatcher, cnt *int64) error
V1CountCDRs counts CDRs from DB
func (*CDRServer) V1GetCDRs ¶
func (cdrS *CDRServer) V1GetCDRs(args utils.RPCCDRsFilterWithArgDispatcher, cdrs *[]*CDR) error
V1GetCDRs returns CDRs from DB
func (*CDRServer) V1ProcessCDR ¶
func (cdrS *CDRServer) V1ProcessCDR(cdr *CDRWithArgDispatcher, reply *string) (err error)
V1ProcessCDR processes a CDR
func (*CDRServer) V1ProcessEvent ¶
func (cdrS *CDRServer) V1ProcessEvent(arg *ArgV1ProcessEvent, reply *string) (err error)
V1ProcessEvent will process the CGREvent
func (*CDRServer) V1ProcessExternalCDR ¶
func (cdrS *CDRServer) V1ProcessExternalCDR(eCDR *ExternalCDRWithArgDispatcher, reply *string) error
V1ProcessExternalCDR is used to process external CDRs
func (*CDRServer) V1RateCDRs ¶
func (cdrS *CDRServer) V1RateCDRs(arg *ArgRateCDRs, reply *string) (err error)
V1RateCDRs is used for re-/rate CDRs which are already stored within StorDB FixMe: add RPC caching
func (*CDRServer) V1StoreSessionCost ¶
func (cdrS *CDRServer) V1StoreSessionCost(attr *AttrCDRSStoreSMCost, reply *string) (err error)
V1StoreSessionCost handles storing of the cost into session_costs table
func (*CDRServer) V2StoreSessionCost ¶
func (cdrS *CDRServer) V2StoreSessionCost(args *ArgsV2CDRSStoreSMCost, reply *string) (err error)
V2StoreSessionCost will store the SessionCost into session_costs table
type CDRWithArgDispatcher ¶
type CDRWithArgDispatcher struct { *CDR *utils.ArgDispatcher }
type CDRsql ¶
type CDRsql struct { ID int64 Cgrid string RunID string OriginHost string Source string OriginID string TOR string RequestType string Tenant string Category string Account string Subject string Destination string SetupTime time.Time AnswerTime time.Time Usage int64 ExtraFields string CostSource string Cost float64 CostDetails string ExtraInfo string CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
func (CDRsql) AsMapStringInterface ¶
type CGRSafEvent ¶
CGRSafEvent is a safe CGREvent
func NewCGRSafEventFromCGREvent ¶
func NewCGRSafEventFromCGREvent(cgrEv *utils.CGREvent) *CGRSafEvent
func (*CGRSafEvent) AsCGREvent ¶
func (cgrSafEv *CGRSafEvent) AsCGREvent() *utils.CGREvent
type CSVStorage ¶
type CSVStorage struct {
// contains filtered or unexported fields
}
func NewCSVStorage ¶
func NewCSVStorage(sep rune, destinationsFn, timingsFn, ratesFn, destinationratesFn, destinationratetimingsFn, ratingprofilesFn, sharedgroupsFn, actionsFn, actiontimingsFn, actiontriggersFn, accountactionsFn, resProfilesFn, statsFn, thresholdsFn, filterFn, suppProfilesFn, attributeProfilesFn, chargerProfilesFn, dispatcherProfilesFn, dispatcherHostsFn []string) *CSVStorage
func NewFileCSVStorage ¶
func NewFileCSVStorage(sep rune, dataPath string, recursive bool) *CSVStorage
func NewGoogleCSVStorage ¶
func NewGoogleCSVStorage(sep rune, spreadsheetId, cfgPath string) (*CSVStorage, error)
func NewStringCSVStorage ¶
func NewStringCSVStorage(sep rune, destinationsFn, timingsFn, ratesFn, destinationratesFn, destinationratetimingsFn, ratingprofilesFn, sharedgroupsFn, actionsFn, actiontimingsFn, actiontriggersFn, accountactionsFn, resProfilesFn, statsFn, thresholdsFn, filterFn, suppProfilesFn, attributeProfilesFn, chargerProfilesFn, dispatcherProfilesFn, dispatcherHostsFn string) *CSVStorage
func (*CSVStorage) GetTPAccountActions ¶
func (csvs *CSVStorage) GetTPAccountActions(filter *utils.TPAccountActions) ([]*utils.TPAccountActions, error)
func (*CSVStorage) GetTPActionPlans ¶
func (csvs *CSVStorage) GetTPActionPlans(tpid, id string) ([]*utils.TPActionPlan, error)
func (*CSVStorage) GetTPActionTriggers ¶
func (csvs *CSVStorage) GetTPActionTriggers(tpid, id string) ([]*utils.TPActionTriggers, error)
func (*CSVStorage) GetTPActions ¶
func (csvs *CSVStorage) GetTPActions(tpid, id string) ([]*utils.TPActions, error)
func (*CSVStorage) GetTPAttributes ¶
func (csvs *CSVStorage) GetTPAttributes(tpid, tenant, id string) ([]*utils.TPAttributeProfile, error)
func (*CSVStorage) GetTPChargers ¶
func (csvs *CSVStorage) GetTPChargers(tpid, tenant, id string) ([]*utils.TPChargerProfile, error)
func (*CSVStorage) GetTPDestinationRates ¶
func (csvs *CSVStorage) GetTPDestinationRates(tpid, id string, p *utils.Paginator) ([]*utils.TPDestinationRate, error)
func (*CSVStorage) GetTPDestinations ¶
func (csvs *CSVStorage) GetTPDestinations(tpid, id string) ([]*utils.TPDestination, error)
func (*CSVStorage) GetTPDispatcherHosts ¶
func (csvs *CSVStorage) GetTPDispatcherHosts(tpid, tenant, id string) ([]*utils.TPDispatcherHost, error)
func (*CSVStorage) GetTPDispatcherProfiles ¶
func (csvs *CSVStorage) GetTPDispatcherProfiles(tpid, tenant, id string) ([]*utils.TPDispatcherProfile, error)
func (*CSVStorage) GetTPFilters ¶
func (csvs *CSVStorage) GetTPFilters(tpid, tenant, id string) ([]*utils.TPFilterProfile, error)
func (*CSVStorage) GetTPRates ¶
func (csvs *CSVStorage) GetTPRates(tpid, id string) ([]*utils.TPRate, error)
func (*CSVStorage) GetTPRatingPlans ¶
func (csvs *CSVStorage) GetTPRatingPlans(tpid, id string, p *utils.Paginator) ([]*utils.TPRatingPlan, error)
func (*CSVStorage) GetTPRatingProfiles ¶
func (csvs *CSVStorage) GetTPRatingProfiles(filter *utils.TPRatingProfile) ([]*utils.TPRatingProfile, error)
func (*CSVStorage) GetTPResources ¶
func (csvs *CSVStorage) GetTPResources(tpid, tenant, id string) ([]*utils.TPResourceProfile, error)
func (*CSVStorage) GetTPSharedGroups ¶
func (csvs *CSVStorage) GetTPSharedGroups(tpid, id string) ([]*utils.TPSharedGroups, error)
func (*CSVStorage) GetTPStats ¶
func (csvs *CSVStorage) GetTPStats(tpid, tenant, id string) ([]*utils.TPStatProfile, error)
func (*CSVStorage) GetTPSuppliers ¶
func (csvs *CSVStorage) GetTPSuppliers(tpid, tenant, id string) ([]*utils.TPSupplierProfile, error)
func (*CSVStorage) GetTPThresholds ¶
func (csvs *CSVStorage) GetTPThresholds(tpid, tenant, id string) ([]*utils.TPThresholdProfile, error)
func (*CSVStorage) GetTPTimings ¶
func (csvs *CSVStorage) GetTPTimings(tpid, id string) ([]*utils.ApierTPTiming, error)
func (*CSVStorage) GetTpTableIds ¶
func (csvs *CSVStorage) GetTpTableIds(tpid, table string, distinct utils.TPDistinctIds, filters map[string]string, p *utils.PaginatorWithSearch) ([]string, error)
type CacheS ¶
type CacheS struct {
// contains filtered or unexported fields
}
CacheS deals with cache preload and other cache related tasks/APIs
func NewCacheS ¶
func NewCacheS(cfg *config.CGRConfig, dm *DataManager) (c *CacheS)
NewCacheS initializes the Cache service and executes the precaching
func (*CacheS) GetPrecacheChannel ¶
GetPrecacheChannel returns the channel used to signal precaching
func (*CacheS) V1Clear ¶
func (chS *CacheS) V1Clear(args *utils.AttrCacheIDsWithArgDispatcher, reply *string) (err error)
func (*CacheS) V1FlushCache ¶
func (chS *CacheS) V1FlushCache(args utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
V1FlushCache wipes out cache for a prefix or completely
func (*CacheS) V1GetCacheStats ¶
func (chS *CacheS) V1GetCacheStats(args *utils.AttrCacheIDsWithArgDispatcher, rply *map[string]*ltcache.CacheStats) (err error)
func (*CacheS) V1GetGroupItemIDs ¶
func (chS *CacheS) V1GetGroupItemIDs(args *utils.ArgsGetGroupWithArgDispatcher, rply *[]string) (err error)
func (*CacheS) V1GetItemExpiryTime ¶
func (*CacheS) V1GetItemIDs ¶
func (chS *CacheS) V1GetItemIDs(args *utils.ArgsGetCacheItemIDsWithArgDispatcher, reply *[]string) (err error)
func (*CacheS) V1HasGroup ¶
func (chS *CacheS) V1HasGroup(args *utils.ArgsGetGroupWithArgDispatcher, rply *bool) (err error)
func (*CacheS) V1HasItem ¶
func (chS *CacheS) V1HasItem(args *utils.ArgsGetCacheItemWithArgDispatcher, reply *bool) (err error)
func (*CacheS) V1LoadCache ¶
func (chS *CacheS) V1LoadCache(args utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
func (*CacheS) V1PrecacheStatus ¶
func (*CacheS) V1ReloadCache ¶
func (chS *CacheS) V1ReloadCache(attrs utils.AttrReloadCacheWithArgDispatcher, reply *string) (err error)
func (*CacheS) V1RemoveGroup ¶
func (chS *CacheS) V1RemoveGroup(args *utils.ArgsGetGroupWithArgDispatcher, rply *string) (err error)
func (*CacheS) V1RemoveItem ¶
func (chS *CacheS) V1RemoveItem(args *utils.ArgsGetCacheItemWithArgDispatcher, reply *string) (err error)
type CallCost ¶
type CallCost struct {
Category, Tenant, Subject, Account, Destination, ToR string
Cost float64
Timespans TimeSpans
RatedUsage float64
AccountSummary *AccountSummary
// contains filtered or unexported fields
}
The output structure that will be returned with the call cost information.