refactor routes,
tronnet/workflows: Static Analysis -- Golang / static-go (push) Successful in 30s

use json encoding for route body parameters,
implement modify user/group/pool operations,
simplify schema by using comon lib struct tags and RequireAll and AtLeastOne helper functions,
properly implement locadb as Backend interface
This commit is contained in:
alu
2026-08-21 20:49:15 +00:00
parent 670f7d4999
commit 4783d79523
13 changed files with 959 additions and 606 deletions
+6 -1
View File
@@ -25,6 +25,10 @@ type LDAPConfig struct {
Verify bool
}
type LocalDBConfig struct {
Path string `json:"path"`
}
type Config struct {
ListenPort int `json:"listenPort"`
SessionCookieName string `json:"sessionCookieName"`
@@ -34,7 +38,8 @@ type Config struct {
Secure bool `json:"secure"`
MaxAge int `json:"maxAge"`
}
PVE PVEConfig `json:"pve"`
PVE PVEConfig `json:"pve"`
LocalDB LocalDBConfig `json:"localdb"`
}
func GetConfig(configPath string) Config {