diff --git a/console/atributes.go b/console/attributes.go similarity index 78% rename from console/atributes.go rename to console/attributes.go index 114f64ece..7da05e28b 100644 --- a/console/atributes.go +++ b/console/attributes.go @@ -24,8 +24,8 @@ import ( ) func init() { - c := &CmdGetAtributes{ - name: "atributes", + c := &CmdGetAttributes{ + name: "attributes", rpcMethod: "ApierV1.GetAttributeProfile", rpcParams: &utils.TenantID{}, } @@ -34,33 +34,33 @@ func init() { } // Commander implementation -type CmdGetAtributes struct { +type CmdGetAttributes struct { name string rpcMethod string rpcParams *utils.TenantID *CommandExecuter } -func (self *CmdGetAtributes) Name() string { +func (self *CmdGetAttributes) Name() string { return self.name } -func (self *CmdGetAtributes) RpcMethod() string { +func (self *CmdGetAttributes) RpcMethod() string { return self.rpcMethod } -func (self *CmdGetAtributes) RpcParams(reset bool) interface{} { +func (self *CmdGetAttributes) RpcParams(reset bool) interface{} { if reset || self.rpcParams == nil { self.rpcParams = &utils.TenantID{} } return self.rpcParams } -func (self *CmdGetAtributes) PostprocessRpcParams() error { +func (self *CmdGetAttributes) PostprocessRpcParams() error { return nil } -func (self *CmdGetAtributes) RpcResult() interface{} { +func (self *CmdGetAttributes) RpcResult() interface{} { atr := engine.AttributeProfile{} return &atr } diff --git a/console/atributes_process_event.go b/console/attributes_process_event.go similarity index 100% rename from console/atributes_process_event.go rename to console/attributes_process_event.go diff --git a/console/atributes_remove.go b/console/attributes_remove.go similarity index 75% rename from console/atributes_remove.go rename to console/attributes_remove.go index c32dea34a..5105bdcd6 100644 --- a/console/atributes_remove.go +++ b/console/attributes_remove.go @@ -21,8 +21,8 @@ package console import "github.com/cgrates/cgrates/utils" func init() { - c := &CmdRemoveAtributes{ - name: "atributes_remove", + c := &CmdRemoveAttributes{ + name: "attributes_remove", rpcMethod: "ApierV1.RemoveAttributeProfile", rpcParams: &utils.TenantID{}, } @@ -30,33 +30,33 @@ func init() { c.CommandExecuter = &CommandExecuter{c} } -type CmdRemoveAtributes struct { +type CmdRemoveAttributes struct { name string rpcMethod string rpcParams *utils.TenantID *CommandExecuter } -func (self *CmdRemoveAtributes) Name() string { +func (self *CmdRemoveAttributes) Name() string { return self.name } -func (self *CmdRemoveAtributes) RpcMethod() string { +func (self *CmdRemoveAttributes) RpcMethod() string { return self.rpcMethod } -func (self *CmdRemoveAtributes) RpcParams(reset bool) interface{} { +func (self *CmdRemoveAttributes) RpcParams(reset bool) interface{} { if reset || self.rpcParams == nil { self.rpcParams = &utils.TenantID{} } return self.rpcParams } -func (self *CmdRemoveAtributes) PostprocessRpcParams() error { +func (self *CmdRemoveAttributes) PostprocessRpcParams() error { return nil } -func (self *CmdRemoveAtributes) RpcResult() interface{} { +func (self *CmdRemoveAttributes) RpcResult() interface{} { var s string return &s } diff --git a/console/atributes_set.go b/console/attributes_set.go similarity index 100% rename from console/atributes_set.go rename to console/attributes_set.go