mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Rename analyzer to analyzers
This commit is contained in:
committed by
Dan Christian Bogos
parent
902e37057f
commit
7db3a96229
@@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
*/
|
||||
|
||||
package analyzer
|
||||
package analyzers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -19,18 +19,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package v1
|
||||
|
||||
import (
|
||||
"github.com/cgrates/cgrates/analyzer"
|
||||
"github.com/cgrates/cgrates/analyzers"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
// NewAnalyzerSv1 initializes AnalyzerSv1
|
||||
func NewAnalyzerSv1(aS *analyzer.AnalyzerService) *AnalyzerSv1 {
|
||||
func NewAnalyzerSv1(aS *analyzers.AnalyzerService) *AnalyzerSv1 {
|
||||
return &AnalyzerSv1{aS: aS}
|
||||
}
|
||||
|
||||
// Exports RPC from RLs
|
||||
type AnalyzerSv1 struct {
|
||||
aS *analyzer.AnalyzerService
|
||||
aS *analyzers.AnalyzerService
|
||||
}
|
||||
|
||||
// Call implements rpcclient.RpcClientConnection interface for internal RPC
|
||||
|
||||
@@ -30,7 +30,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/cgrates/cgrates/agents"
|
||||
"github.com/cgrates/cgrates/analyzer"
|
||||
"github.com/cgrates/cgrates/analyzers"
|
||||
"github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/apier/v2"
|
||||
"github.com/cgrates/cgrates/cdrc"
|
||||
@@ -1133,7 +1133,7 @@ func startAnalyzerService(internalAnalyzerSChan chan rpcclient.RpcClientConnecti
|
||||
server *utils.Server, exitChan chan bool) {
|
||||
utils.Logger.Info("Starting CGRateS Analyzer service.")
|
||||
var err error
|
||||
aS, err := analyzer.NewAnalyzerService()
|
||||
aS, err := analyzers.NewAnalyzerService()
|
||||
if err != nil {
|
||||
utils.Logger.Crit(fmt.Sprintf("<%s> Could not init, error: %s", utils.AnalyzerS, err.Error()))
|
||||
exitChan <- true
|
||||
|
||||
@@ -711,7 +711,7 @@ const CGRATES_CFG_JSON = `
|
||||
},
|
||||
|
||||
|
||||
"analyzer":{
|
||||
"analyzers":{
|
||||
"enabled":false // starts AnalyzerS service: <true|false>.
|
||||
},
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ const (
|
||||
CgrMigratorCfgJson = "migrator"
|
||||
ChargerSCfgJson = "chargers"
|
||||
TlsCfgJson = "tls"
|
||||
AnalyzerCfgJson = "analyzer"
|
||||
AnalyzerCfgJson = "analyzers"
|
||||
)
|
||||
|
||||
// Loads the json config out of io.Reader, eg other sources than file, maybe over http
|
||||
|
||||
@@ -63,11 +63,11 @@ func (self *CmdApierPing) RpcMethod() string {
|
||||
return utils.ThresholdSv1Ping
|
||||
case utils.SessionsLow:
|
||||
return utils.SessionSv1Ping
|
||||
case utils.LoaderLow:
|
||||
case utils.LoaderSLow:
|
||||
return utils.LoaderSv1Ping
|
||||
case utils.DispatcherLow:
|
||||
case utils.DispatcherSLow:
|
||||
return utils.DispatcherSv1Ping
|
||||
case utils.AnalyzerLow:
|
||||
case utils.AnalyzerSLow:
|
||||
return utils.AnalyzerSv1Ping
|
||||
default:
|
||||
}
|
||||
|
||||
@@ -575,9 +575,9 @@ const (
|
||||
ResourcesLow = "resources"
|
||||
StatServiceLow = "stats"
|
||||
ThresholdsLow = "thresholds"
|
||||
DispatcherLow = "dispatcher"
|
||||
AnalyzerLow = "analyzer"
|
||||
LoaderLow = "loader"
|
||||
DispatcherSLow = "dispatchers"
|
||||
AnalyzerSLow = "analyzers"
|
||||
LoaderSLow = "loaders"
|
||||
)
|
||||
|
||||
// Migrator Metas
|
||||
|
||||
Reference in New Issue
Block a user