add more hub endpoints

This commit is contained in:
cos
2026-04-30 13:27:36 +02:00
parent 0afed9a326
commit 88217db278
3 changed files with 177 additions and 5 deletions
+5
View File
@@ -12,6 +12,11 @@ import (
"github.com/google/uuid"
)
func StringToUint8(s string) (uint8, error) {
v, err := strconv.ParseUint(s, 10, 8)
return uint8(v), err
}
func StringToUint32(s string) (uint32, error) {
v, err := strconv.ParseUint(s, 10, 32)
return uint32(v), err