Restructured project

- backend moved to backend directory
- added and initialized frontend with vue
- moved infrastructure files to infra directory
This commit is contained in:
2026-04-01 22:27:26 +03:00
parent 48ef7217eb
commit 9d845c8899
96 changed files with 1591 additions and 118 deletions
+28
View File
@@ -0,0 +1,28 @@
package config
import (
"fmt"
"strings"
)
type RunMode string
const (
Bot RunMode = "bot"
API RunMode = "api"
Standalone RunMode = "standalone"
Unknown RunMode = "unknown"
)
func ParseRunMode(s string) (RunMode, error) {
switch strings.ToLower(s) {
case "bot":
return Bot, nil
case "api":
return API, nil
case "standalone":
return Standalone, nil
default:
return Unknown, fmt.Errorf("invalid run mode: %s", s)
}
}