Renamed ApierV1 to APIerSv1/ ApierV2 to APIerSv2

This commit is contained in:
adragusin
2020-01-30 14:59:06 +02:00
committed by Dan Christian Bogos
parent 54217c8428
commit 3eaf3232a1
263 changed files with 2998 additions and 2995 deletions

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetAccountActionPlan{
name: "account_actionplan_get",
rpcMethod: utils.ApierV1GetAccountActionPlan,
rpcMethod: utils.APIerSv1GetAccountActionPlan,
rpcParams: &utils.TenantAccount{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveAccount{
name: "account_remove",
rpcMethod: utils.ApierV1RemoveAccount,
rpcMethod: utils.APIerSv1RemoveAccount,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAddAccount{
name: "account_set",
rpcMethod: utils.ApierV2SetAccount,
rpcMethod: utils.APIerSv2SetAccount,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAccountAddTriggers{
name: "account_triggers_add",
rpcMethod: utils.ApierV1AddAccountActionTriggers,
rpcMethod: utils.APIerSv1AddAccountActionTriggers,
rpcParams: &v1.AttrAddAccountActionTriggers{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAccountRemoveTriggers{
name: "account_triggers_remove",
rpcMethod: utils.ApierV1RemoveAccountActionTriggers,
rpcMethod: utils.APIerSv1RemoveAccountActionTriggers,
rpcParams: &v1.AttrRemoveAccountActionTriggers{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAccountResetTriggers{
name: "account_triggers_reset",
rpcMethod: utils.ApierV1ResetAccountActionTriggers,
rpcMethod: utils.APIerSv1ResetAccountActionTriggers,
rpcParams: &v1.AttrRemoveAccountActionTriggers{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAccountSetTriggers{
name: "account_triggers_set",
rpcMethod: utils.ApierV1SetAccountActionTriggers,
rpcMethod: utils.APIerSv1SetAccountActionTriggers,
rpcParams: &v1.AttrSetAccountActionTriggers{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetAccounts{
name: "accounts",
rpcMethod: utils.ApierV2GetAccounts,
rpcMethod: utils.APIerSv2GetAccounts,
rpcParams: &utils.AttrGetAccounts{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdExecuteAction{
name: "action_execute",
rpcMethod: utils.ApierV1ExecuteAction,
rpcMethod: utils.APIerSv1ExecuteAction,
rpcParams: &utils.AttrExecuteAction{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetActionPlan{
name: "actionplan_get",
rpcMethod: utils.ApierV1GetActionPlan,
rpcMethod: utils.APIerSv1GetActionPlan,
rpcParams: &v1.AttrGetActionPlan{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdRemoveActionPlan{
name: "actionplan_remove",
rpcMethod: utils.ApierV1RemoveActionPlan,
rpcMethod: utils.APIerSv1RemoveActionPlan,
rpcParams: &v1.AttrGetActionPlan{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetActionPlan{
name: "actionplan_set",
rpcMethod: utils.ApierV1SetActionPlan,
rpcMethod: utils.APIerSv1SetActionPlan,
rpcParams: &v1.AttrSetActionPlan{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetActions{
name: "actions",
rpcMethod: utils.ApierV2GetActions,
rpcMethod: utils.APIerSv2GetActions,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdRemoveActions{
name: "actions_remove",
rpcMethod: utils.ApierV1RemoveActions,
rpcMethod: utils.APIerSv1RemoveActions,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetAttributes{
name: "attributes",
rpcMethod: utils.ApierV1GetAttributeProfile,
rpcMethod: utils.APIerSv1GetAttributeProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetAttributeIDs{
name: "attribute_ids",
rpcMethod: utils.ApierV1GetAttributeProfileIDs,
rpcMethod: utils.APIerSv1GetAttributeProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveAttributes{
name: "attributes_remove",
rpcMethod: utils.ApierV1RemoveAttributeProfile,
rpcMethod: utils.APIerSv1RemoveAttributeProfile,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdSetAttributes{
name: "attributes_set",
rpcMethod: utils.ApierV2SetAttributeProfile,
rpcMethod: utils.APIerSv2SetAttributeProfile,
rpcParams: &v2.AttributeWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdAddBalance{
name: "balance_add",
rpcMethod: utils.ApierV1AddBalance,
rpcMethod: utils.APIerSv1AddBalance,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdBalanceDebit{
name: "balance_debit",
rpcMethod: utils.ApierV1DebitBalance,
rpcMethod: utils.APIerSv1DebitBalance,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdRemoveBalance{
name: "balance_remove",
rpcMethod: utils.ApierV1RemoveBalances,
rpcMethod: utils.APIerSv1RemoveBalances,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetBalance{
name: "balance_set",
rpcMethod: utils.ApierV1SetBalance,
rpcMethod: utils.APIerSv1SetBalance,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdCdreConfigReload{
name: "cdre_config_reload",
rpcMethod: utils.ApierV1ReloadCdreConfig,
rpcMethod: utils.APIerSv1ReloadCdreConfig,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdExportCdrs{
name: "cdrs_export",
rpcMethod: utils.ApierV1ExportCDRs,
rpcMethod: utils.APIerSv1ExportCDRs,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetChargerIDs{
name: "chargers_ids",
rpcMethod: utils.ApierV1GetChargerProfileIDs,
rpcMethod: utils.APIerSv1GetChargerProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetChargers{
name: "chargers",
rpcMethod: utils.ApierV1GetChargerProfile,
rpcMethod: utils.APIerSv1GetChargerProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveChargers{
name: "chargers_remove",
rpcMethod: utils.ApierV1RemoveChargerProfile,
rpcMethod: utils.APIerSv1RemoveChargerProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdSetChargers{
name: "chargers_set",
rpcMethod: utils.ApierV1SetChargerProfile,
rpcMethod: utils.APIerSv1SetChargerProfile,
rpcParams: &v1.ChargerWithCache{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdComputeActionPlanIndexes{
name: "compute_actionplan_indexes",
rpcMethod: utils.ApierV1ComputeActionPlanIndexes,
rpcMethod: utils.APIerSv1ComputeActionPlanIndexes,
rpcParams: new(EmptyWrapper),
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdComputeFilterIndexes{
name: "compute_filter_indexes",
rpcMethod: "ApierV1.ComputeFilterIndexes",
rpcMethod: "APIerSv1.ComputeFilterIndexes",
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetCost{
name: "cost",
rpcMethod: utils.ApierV1GetCost,
rpcMethod: utils.APIerSv1GetCost,
clientArgs: []string{"Tenant", "Category", "Subject", "AnswerTime", "Destination", "Usage"},
rpcParams: &v1.AttrGetCost{},
}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetCostDetails{
name: "cost_details",
rpcMethod: utils.ApierV1GetEventCost,
rpcMethod: utils.APIerSv1GetEventCost,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetDataCost{
name: "datacost",
rpcMethod: utils.ApierV1GetDataCost,
rpcMethod: utils.APIerSv1GetDataCost,
clientArgs: []string{"Category", "Tenant", "Account", "Subject", "StartTime", "Usage"},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetDataDBVersions{
name: "datadb_versions",
rpcMethod: utils.ApierV1GetDataDBVersions,
rpcMethod: utils.APIerSv1GetDataDBVersions,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdSetDestination{
name: "destination_set",
rpcMethod: utils.ApierV1SetDestination,
rpcMethod: utils.APIerSv1SetDestination,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetDestination{
name: "destinations",
rpcMethod: utils.ApierV2GetDestinations,
rpcMethod: utils.APIerSv2GetDestinations,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetDispatcherHost{
name: "dispatcher_host",
rpcMethod: utils.ApierV1GetDispatcherHost,
rpcMethod: utils.APIerSv1GetDispatcherHost,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetDispatcherHostIDs{
name: "dispatcher_host_ids",
rpcMethod: utils.ApierV1GetDispatcherHostIDs,
rpcMethod: utils.APIerSv1GetDispatcherHostIDs,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdRemoveDispatcherHost{
name: "dispatcher_host_remove",
rpcMethod: utils.ApierV1RemoveDispatcherHost,
rpcMethod: utils.APIerSv1RemoveDispatcherHost,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetDispatcherHost{
name: "dispatcher_host_set",
rpcMethod: utils.ApierV1SetDispatcherHost,
rpcMethod: utils.APIerSv1SetDispatcherHost,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetDispatcherProfile{
name: "dispatcherprofile_get",
rpcMethod: utils.ApierV1GetDispatcherProfile,
rpcMethod: utils.APIerSv1GetDispatcherProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetDispatcherProfileIDs{
name: "dispatcherprofile_ids",
rpcMethod: utils.ApierV1GetDispatcherProfileIDs,
rpcMethod: utils.APIerSv1GetDispatcherProfileIDs,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdRemoveDispatcherProfile{
name: "dispatcherprofile_remove",
rpcMethod: utils.ApierV1RemoveDispatcherProfile,
rpcMethod: utils.APIerSv1RemoveDispatcherProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetDispatcherProfile{
name: "dispatcherprofile_set",
rpcMethod: utils.ApierV1SetDispatcherProfile,
rpcMethod: utils.APIerSv1SetDispatcherProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetFilter{
name: "filter",
rpcMethod: utils.ApierV1GetFilter,
rpcMethod: utils.APIerSv1GetFilter,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetFilterIDs{
name: "filter_ids",
rpcMethod: utils.ApierV1GetFilterIDs,
rpcMethod: utils.APIerSv1GetFilterIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetFilterIndexes{
name: "filter_indexes",
rpcMethod: utils.ApierV1GetFilterIndexes,
rpcMethod: utils.APIerSv1GetFilterIndexes,
rpcParams: &v1.AttrGetFilterIndexes{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdRemoveFilterIndexes{
name: "filter_indexes_remove",
rpcMethod: utils.ApierV1RemoveFilterIndexes,
rpcMethod: utils.APIerSv1RemoveFilterIndexes,
rpcParams: &v1.AttrRemFilterIndexes{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveFilter{
name: "filter_remove",
rpcMethod: utils.ApierV1RemoveFilter,
rpcMethod: utils.APIerSv1RemoveFilter,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdSetFilter{
name: "filter_set",
rpcMethod: utils.ApierV1SetFilter,
rpcMethod: utils.APIerSv1SetFilter,
rpcParams: &v1.FilterWithCache{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &ImportTpFromFolder{
name: "import_tp_from_folder",
rpcMethod: utils.ApierV1ImportTariffPlanFromFolder,
rpcMethod: utils.APIerSv1ImportTariffPlanFromFolder,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdGetLoadHistory{
name: "load_history",
rpcMethod: utils.ApierV1GetLoadHistory,
rpcMethod: utils.APIerSv1GetLoadHistory,
rpcParams: new(utils.Paginator),
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdCacheVersions{
name: "get_load_ids",
rpcMethod: utils.ApierV1GetLoadIDs,
rpcMethod: utils.APIerSv1GetLoadIDs,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdLoadTimes{
name: "get_load_times",
rpcMethod: utils.ApierV1GetLoadTimes,
rpcMethod: utils.APIerSv1GetLoadTimes,
rpcParams: &v1.LoadTimeArgs{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &LoadTpFromFolder{
name: "load_tp_from_folder",
rpcMethod: utils.ApierV1LoadTariffPlanFromFolder,
rpcMethod: utils.APIerSv1LoadTariffPlanFromFolder,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &LoadTpFromStorDb{
name: "load_tp_from_stordb",
rpcMethod: utils.ApierV1LoadTariffPlanFromStorDb,
rpcMethod: utils.APIerSv1LoadTariffPlanFromStorDb,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/engine"
func init() {
c := &CmdGetMaxUsage{
name: "maxusage",
rpcMethod: "ApierV1.GetMaxUsage",
rpcMethod: "APIerSv1.GetMaxUsage",
clientArgs: []string{"ToR", "RequestType", "Tenant",
"Category", "Account", "Subject", "Destination",
"SetupTime", "AnswerTime", "Usage", "ExtraFields"},

View File

@@ -78,7 +78,7 @@ func (self *CmdApierPing) RpcMethod() string {
case utils.ReplicatorLow:
return utils.ReplicatorSv1Ping
case utils.ApierSLow:
return utils.ApierV1Ping
return utils.APIerSv1Ping
default:
}
return self.rpcMethod

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetRatingProfile{
name: "ratingprofile",
rpcMethod: utils.ApierV1GetRatingProfile,
rpcMethod: utils.APIerSv1GetRatingProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -28,7 +28,7 @@ import (
func init() {
c := &CmdRemRatingProfile{
name: "ratingprofile_rem",
rpcMethod: utils.ApierV1RemoveRatingProfile,
rpcMethod: utils.APIerSv1RemoveRatingProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSetRatingProfile{
name: "ratingprofile_set",
rpcMethod: utils.ApierV1SetRatingProfile,
rpcMethod: utils.APIerSv1SetRatingProfile,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetRatingProfileIDs{
name: "ratingprofil_ids",
rpcMethod: utils.ApierV1GetRatingProfileIDs,
rpcMethod: utils.APIerSv1GetRatingProfileIDs,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetResourceIDs{
name: "resource_ids",
rpcMethod: utils.ApierV1GetResourceProfileIDs,
rpcMethod: utils.APIerSv1GetResourceProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetResourceProfile{
name: "resource_profile",
rpcMethod: utils.ApierV1GetResourceProfile,
rpcMethod: utils.APIerSv1GetResourceProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveResource{
name: "resource_remove",
rpcMethod: utils.ApierV1RemoveResourceProfile,
rpcMethod: utils.APIerSv1RemoveResourceProfile,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetResource{
name: "resource_set",
rpcMethod: utils.ApierV1SetResourceProfile,
rpcMethod: utils.APIerSv1SetResourceProfile,
rpcParams: &v1.ResourceWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdExecuteScheduledActions{
name: "scheduler_execute",
rpcMethod: utils.ApierV1ExecuteScheduledActions,
rpcMethod: utils.APIerSv1ExecuteScheduledActions,
rpcParams: &v1.AttrsExecuteScheduledActions{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetScheduledActions{
name: "scheduler_queue",
rpcMethod: utils.ApierV1GetScheduledActions,
rpcMethod: utils.APIerSv1GetScheduledActions,
rpcParams: &scheduler.ArgsGetScheduledActions{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetDataDBVersions{
name: "set_datadb_versions",
rpcMethod: utils.ApierV1SetDataDBVersions,
rpcMethod: utils.APIerSv1SetDataDBVersions,
rpcParams: &v1.SetVersionsArg{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetStorDBVersions{
name: "set_stordb_versions",
rpcMethod: utils.ApierV1SetStorDBVersions,
rpcMethod: utils.APIerSv1SetStorDBVersions,
rpcParams: &v1.SetVersionsArg{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetSharedGroup{
name: "sharedgroup",
rpcMethod: utils.ApierV1GetSharedGroup,
rpcMethod: utils.APIerSv1GetSharedGroup,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetStatQueueProfile{
name: "statqueue_profile",
rpcMethod: utils.ApierV1GetStatQueueProfile,
rpcMethod: utils.APIerSv1GetStatQueueProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetStatQueueIDs{
name: "statqueue_ids",
rpcMethod: utils.ApierV1GetStatQueueProfileIDs,
rpcMethod: utils.APIerSv1GetStatQueueProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveStatQueue{
name: "statqueue_remove",
rpcMethod: utils.ApierV1RemoveStatQueueProfile,
rpcMethod: utils.APIerSv1RemoveStatQueueProfile,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdSetStatQueue{
name: "statqueue_set",
rpcMethod: utils.ApierV1SetStatQueueProfile,
rpcMethod: utils.APIerSv1SetStatQueueProfile,
rpcParams: &v1.StatQueueWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetStorDBVersions{
name: "stordb_versions",
rpcMethod: utils.ApierV1GetStorDBVersions,
rpcMethod: utils.APIerSv1GetStorDBVersions,
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetSupplier{
name: "supplier_get",
rpcMethod: utils.ApierV1GetSupplierProfile,
rpcMethod: utils.APIerSv1GetSupplierProfile,
rpcParams: &utils.TenantID{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdSuppliersIDs{
name: "supplier_ids",
rpcMethod: utils.ApierV1GetSupplierProfileIDs,
rpcMethod: utils.APIerSv1GetSupplierProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveSupplier{
name: "supplier_remove",
rpcMethod: utils.ApierV1RemoveSupplierProfile,
rpcMethod: utils.APIerSv1RemoveSupplierProfile,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdSetSupplier{
name: "supplier_set",
rpcMethod: utils.ApierV1SetSupplierProfile,
rpcMethod: utils.APIerSv1SetSupplierProfile,
rpcParams: &v1.SupplierWithCache{},
}
commands[c.Name()] = c

View File

@@ -25,7 +25,7 @@ import (
func init() {
c := &CmdGetThresholdIDs{
name: "threshold_ids",
rpcMethod: utils.ApierV1GetThresholdProfileIDs,
rpcMethod: utils.APIerSv1GetThresholdProfileIDs,
rpcParams: &utils.TenantArgWithPaginator{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdGetThresholdProfile{
name: "threshold_profile",
rpcMethod: utils.ApierV1GetThresholdProfile,
rpcMethod: utils.APIerSv1GetThresholdProfile,
rpcParams: &utils.TenantIDWithArgDispatcher{},
}
commands[c.Name()] = c

View File

@@ -23,7 +23,7 @@ import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveThreshold{
name: "threshold_remove",
rpcMethod: utils.ApierV1RemoveThresholdProfile,
rpcMethod: utils.APIerSv1RemoveThresholdProfile,
rpcParams: &utils.TenantIDWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetThreshold{
name: "threshold_set",
rpcMethod: utils.ApierV1SetThresholdProfile,
rpcMethod: utils.APIerSv1SetThresholdProfile,
rpcParams: &engine.ThresholdWithCache{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdRemoveTriggers{
name: "triggers_remove",
rpcMethod: utils.ApierV1RemoveActionTrigger,
rpcMethod: utils.APIerSv1RemoveActionTrigger,
rpcParams: &v1.AttrRemoveActionTrigger{},
}
commands[c.Name()] = c

View File

@@ -26,7 +26,7 @@ import (
func init() {
c := &CmdSetTriggers{
name: "triggers_set",
rpcMethod: utils.ApierV1SetActionTrigger,
rpcMethod: utils.APIerSv1SetActionTrigger,
rpcParams: &v1.AttrSetActionTrigger{},
}
commands[c.Name()] = c

View File

@@ -27,7 +27,7 @@ import (
func init() {
c := &CmdGetTriggers{
name: "triggers",
rpcMethod: utils.ApierV1GetActionTriggers,
rpcMethod: utils.APIerSv1GetActionTriggers,
rpcParams: &v1.AttrGetActionTriggers{},
}
commands[c.Name()] = c