mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Finished changing Opts to APIOpts for structs used in api_interfaces
This commit is contained in:
committed by
Dan Christian Bogos
parent
38b02c642c
commit
806c8295be
@@ -27,7 +27,7 @@ func init() {
|
||||
c := &CmdGetCacheStats{
|
||||
name: "cache_stats",
|
||||
rpcMethod: utils.CacheSv1GetCacheStats,
|
||||
rpcParams: &utils.AttrCacheIDsWithOpts{},
|
||||
rpcParams: &utils.AttrCacheIDsWithAPIOpts{},
|
||||
}
|
||||
commands[c.Name()] = c
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
@@ -37,7 +37,7 @@ func init() {
|
||||
type CmdGetCacheStats struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *utils.AttrCacheIDsWithOpts
|
||||
rpcParams *utils.AttrCacheIDsWithAPIOpts
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ func (self *CmdGetCacheStats) RpcMethod() string {
|
||||
|
||||
func (self *CmdGetCacheStats) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = new(utils.AttrCacheIDsWithOpts)
|
||||
self.rpcParams = new(utils.AttrCacheIDsWithAPIOpts)
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user