Merge pull request #1417 from Trial97/master

Remove UserS
This commit is contained in:
Dan Christian Bogos
2019-02-18 12:11:43 +01:00
committed by GitHub
75 changed files with 126 additions and 3525 deletions

View File

@@ -353,34 +353,6 @@ type TPSharedGroup struct {
RatingSubject string
}
type TPUsers struct {
TPid string
Tenant string
UserName string
Masked bool
Weight float64
Profile []*TPUserProfile
}
type TPUserProfile struct {
AttrName string
AttrValue string
}
func (u *TPUsers) GetId() string {
return ConcatenatedKey(u.Tenant, u.UserName)
}
func (tu *TPUsers) SetId(id string) error {
vals := strings.Split(id, CONCATENATED_KEY_SEP)
if len(vals) != 2 {
return ErrInvalidKey
}
tu.Tenant = vals[0]
tu.UserName = vals[1]
return nil
}
type TPDerivedChargers struct {
TPid string
LoadId string
@@ -597,7 +569,6 @@ type CacheStats struct {
AccountActionPlans int
SharedGroups int
DerivedChargers int
Users int
ResourceProfiles int
Resources int
StatQueues int

View File

@@ -129,7 +129,6 @@ const (
UNLIMITED = "*unlimited"
ZERO = "*zero"
ASAP = "*asap"
USERS = "*users"
STATS_CHAR = "#"
COMMENT_CHAR = '#'
CSV_SEP = ','
@@ -471,17 +470,17 @@ const (
RatingPlan = "RatingPlan"
RatingProfile = "RatingProfile"
MetaRatingPlans = "*ratingplans"
MetaRatingProfile = "*ratingprofile"
MetaRatingProfile = "*ratingprofiles"
MetaDestinations = "*destinations"
MetaReverseDestinations = "*reversedestinations"
MetaLCR = "*lcr"
MetaCdrStats = "*cdrstats"
MetaTiming = "*Timing"
MetaRQF = "*RQF"
MetaResource = "*Resource"
MetaUser = "*User"
MetaSubscribers = "*Subscribers"
MetaDerivedChargersV = "*DerivedChargers"
MetaTiming = "*timings"
MetaReqFilters = "*reqfilters"
MetaResource = "*resources"
MetaUser = "*users"
MetaSubscribers = "*subscribers"
MetaDerivedChargersV = "*derivedchargers"
MetaStorDB = "*stordb"
MetaDataDB = "*datadb"
MetaWeight = "*weight"
@@ -624,13 +623,12 @@ const (
MetaTpResources = "*tp_resources"
MetaTpRates = "*tp_rates"
MetaTpTiming = "*tp_timing"
MetaTpResource = "*tp_resource"
MetaTpUsers = "*tp_users"
MetaTpResource = "*tp_resources"
MetaTpDerivedChargersV = "*tp_derived_chargers"
MetaTpCdrStats = "*tp_cdrstats"
MetaTpDestinations = "*tp_destinations"
MetaTpRatingPlan = "*tp_rating_plan"
MetaTpRatingProfile = "*tp_rating_profile"
MetaTpRatingPlan = "*tp_rating_plans"
MetaTpRatingProfile = "*tp_rating_profiles"
MetaTpChargers = "*tp_chargers"
MetaTpDispatchers = "*tp_dispatchers"
MetaDurationSeconds = "*duration_seconds"
@@ -662,7 +660,6 @@ const (
TpRates = "TpRates"
TpTiming = "TpTiming"
TpResource = "TpResource"
TpUsers = "TpUsers"
TpDerivedChargersV = "TpDerivedChargers"
TpCdrStats = "TpCdrStats"
TpDestinations = "TpDestinations"
@@ -707,11 +704,6 @@ const (
ApierV2LoadTariffPlanFromFolder = "ApierV2.LoadTariffPlanFromFolder"
)
// UserS APIs
const (
UsersV1ReloadUsers = "UsersV1.ReloadUsers"
)
// SupplierS APIs
const (
SupplierSv1GetSuppliers = "SupplierSv1.GetSuppliers"
@@ -876,7 +868,6 @@ const (
ACTION_TRIGGERS_CSV = "ActionTriggers.csv"
ACCOUNT_ACTIONS_CSV = "AccountActions.csv"
DERIVED_CHARGERS_CSV = "DerivedChargers.csv"
USERS_CSV = "Users.csv"
ResourcesCsv = "Resources.csv"
StatsCsv = "Stats.csv"
ThresholdsCsv = "Thresholds.csv"
@@ -901,7 +892,6 @@ const (
TBLTPActionTriggers = "tp_action_triggers"
TBLTPAccountActions = "tp_account_actions"
TBLTPDerivedChargers = "tp_derived_chargers"
TBLTPUsers = "tp_users"
TBLTPResources = "tp_resources"
TBLTPStats = "tp_stats"
TBLTPThresholds = "tp_thresholds"