mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
CacheSv1.GetGroupItemIDs API
This commit is contained in:
@@ -70,6 +70,13 @@ func (chSv1 *CacheSv1) GetCacheStats(cacheIDs []string,
|
||||
return chSv1.cacheS.V1GetCacheStats(cacheIDs, rply)
|
||||
}
|
||||
|
||||
// PrecacheStatus checks status of active precache processes
|
||||
func (chSv1 *CacheSv1) PrecacheStatus(cacheIDs []string, rply *map[string]string) error {
|
||||
return chSv1.cacheS.V1PrecacheStatus(cacheIDs, rply)
|
||||
}
|
||||
|
||||
// GetGroupItemIDs returns a list of itemIDs in a cache group
|
||||
func (chSv1 *CacheSv1) GetGroupItemIDs(args *engine.ArgsGetGroupItems,
|
||||
rply *[]string) (err error) {
|
||||
return chSv1.cacheS.V1GetGroupItemIDs(args, rply)
|
||||
}
|
||||
|
||||
@@ -190,3 +190,14 @@ func (chS *CacheS) V1PrecacheStatus(cacheIDs []string, rply *map[string]string)
|
||||
*rply = pCacheStatus
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsGetGroupItems struct {
|
||||
CacheID string
|
||||
GroupID string
|
||||
}
|
||||
|
||||
func (chS *CacheS) V1GetGroupItemIDs(args *ArgsGetGroupItems,
|
||||
rply *[]string) (err error) {
|
||||
*rply = Cache.GetGroupItemIDs(args.CacheID, args.GroupID)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user