From 727f4280828479f3a04282647455c48cd9dd426f Mon Sep 17 00:00:00 2001 From: Gavin Henry Date: Mon, 22 Oct 2018 22:38:35 +0100 Subject: [PATCH] Fix atribute typos. --- console/{atributes.go => attributes.go} | 16 ++++++++-------- ...cess_event.go => attributes_process_event.go} | 0 ...{atributes_remove.go => attributes_remove.go} | 16 ++++++++-------- console/{atributes_set.go => attributes_set.go} | 0 4 files changed, 16 insertions(+), 16 deletions(-) rename console/{atributes.go => attributes.go} (78%) rename console/{atributes_process_event.go => attributes_process_event.go} (100%) rename console/{atributes_remove.go => attributes_remove.go} (75%) rename console/{atributes_set.go => attributes_set.go} (100%) 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