Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment

This commit is contained in:
Vladislav Agapov
2026-10-15 17:09:26 +03:00
parent 65003b6119
commit b90581f613
184 changed files with 15853 additions and 56 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"fmt"
"go.uber.org/fx"
)
// run dispatches the server command or the container healthcheck.
func run(args []string) error {
if len(args) == 0 {
fx.New(CreateApp()).Run()
return nil
}
if len(args) == 1 && args[0] == "healthcheck" {
return healthcheck()
}
return fmt.Errorf("usage: server [healthcheck]")
}