mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
ApierV2.GetAccounts
This commit is contained in:
@@ -52,8 +52,14 @@ func (ms *MapStorage) Flush(ignore string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ms *MapStorage) GetKeysForPrefix(string) ([]string, error) {
|
||||
return nil, nil
|
||||
func (ms *MapStorage) GetKeysForPrefix(prefix string) ([]string, error) {
|
||||
keysForPrefix := make([]string, 0)
|
||||
for key := range ms.dict {
|
||||
if strings.HasPrefix(key, prefix) {
|
||||
keysForPrefix = append(keysForPrefix, key)
|
||||
}
|
||||
}
|
||||
return keysForPrefix, nil
|
||||
}
|
||||
|
||||
func (ms *MapStorage) CacheRating(dKeys, rpKeys, rpfKeys, alsKeys, lcrKeys []string) error {
|
||||
|
||||
Reference in New Issue
Block a user