mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Addec all cores APIs in dispatchers + tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
78a9b724ed
commit
5565d87d6b
@@ -742,9 +742,11 @@ type TenantWithAPIOpts struct {
|
||||
}
|
||||
|
||||
type MemoryPrf struct {
|
||||
Tenant string
|
||||
DirPath string
|
||||
Interval time.Duration
|
||||
NrFiles int
|
||||
APIOpts map[string]interface{}
|
||||
}
|
||||
|
||||
type TenantID struct {
|
||||
@@ -972,6 +974,12 @@ type DurationArgs struct {
|
||||
Tenant string
|
||||
}
|
||||
|
||||
type DirectoryArgs struct {
|
||||
DirPath string
|
||||
APIOpts map[string]interface{}
|
||||
Tenant string
|
||||
}
|
||||
|
||||
// AESEncrypt will encrypt the provided txt using the encKey and AES algorithm
|
||||
func AESEncrypt(txt, encKey string) (encrypted string, err error) {
|
||||
key, _ := hex.DecodeString(encKey)
|
||||
|
||||
Reference in New Issue
Block a user