simpler console command interface

This commit is contained in:
Radu Ioan Fericean
2015-07-14 21:23:21 +03:00
parent 0f7cc579f3
commit e95b2be88d
49 changed files with 131 additions and 230 deletions

View File

@@ -45,14 +45,11 @@ func (self *CmdGetCacheStats) RpcMethod() string {
return self.rpcMethod
}
func (self *CmdGetCacheStats) RpcParams(ptr, reset bool) interface{} {
func (self *CmdGetCacheStats) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &utils.AttrCacheStats{}
}
if ptr {
return self.rpcParams
}
return *self.rpcParams
return self.rpcParams
}
func (self *CmdGetCacheStats) PostprocessRpcParams() error {