Added migration for DerivedChargers to ChargersProfile and tests

This commit is contained in:
Trial97
2019-01-17 16:04:09 +02:00
committed by Dan Christian Bogos
parent b6846ff1f5
commit 1d9c1f03e9
10 changed files with 858 additions and 4 deletions

View File

@@ -340,6 +340,10 @@ func ConcatenatedKey(keyVals ...string) string {
return strings.Join(keyVals, CONCATENATED_KEY_SEP)
}
func SplitConcatenatedKey(key string) []string {
return strings.Split(key, CONCATENATED_KEY_SEP)
}
func LCRKey(direction, tenant, category, account, subject string) string {
return ConcatenatedKey(direction, tenant, category, account, subject)
}