Addec all cores APIs in dispatchers + tests

This commit is contained in:
porosnicuadrian
2021-07-01 16:57:54 +03:00
committed by Dan Christian Bogos
parent 78a9b724ed
commit 5565d87d6b
4 changed files with 223 additions and 1 deletions

View File

@@ -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)