Finished changing Opts to APIOpts for structs used in api_interfaces

This commit is contained in:
andronache
2021-03-22 16:29:59 +02:00
committed by Dan Christian Bogos
parent 38b02c642c
commit 806c8295be
95 changed files with 600 additions and 600 deletions

View File

@@ -26,7 +26,7 @@ func init() {
c := &CmdGetPrecacheStatus{
name: "cache_precache_status",
rpcMethod: utils.CacheSv1PrecacheStatus,
rpcParams: &utils.AttrCacheIDsWithOpts{},
rpcParams: &utils.AttrCacheIDsWithAPIOpts{},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -36,7 +36,7 @@ func init() {
type CmdGetPrecacheStatus struct {
name string
rpcMethod string
rpcParams *utils.AttrCacheIDsWithOpts
rpcParams *utils.AttrCacheIDsWithAPIOpts
*CommandExecuter
}
@@ -50,7 +50,7 @@ func (self *CmdGetPrecacheStatus) RpcMethod() string {
func (self *CmdGetPrecacheStatus) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = new(utils.AttrCacheIDsWithOpts)
self.rpcParams = new(utils.AttrCacheIDsWithAPIOpts)
}
return self.rpcParams
}