chore: add ansible backend docker frontend-prep

This commit is contained in:
2026-01-21 13:05:13 +01:00
parent 5a280b6b01
commit 943fe4de7d
14930 changed files with 2341433 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
package db
import "fmt"
func extractCommandID(member interface{}) int {
switch v := member.(type) {
case int:
return v
case int64:
return int(v)
case float64:
return int(v)
case string:
var id int
fmt.Sscanf(v, "%d", &id)
return id
default:
return 0
}
}
func splitNotificationKey(key string) []string {
for i, c := range key {
if c == ':' {
return []string{key[:i], key[i+1:]}
}
}
return []string{key, ""}
}