feat(gl): expose ledger application and grpc operations

This commit is contained in:
2026-08-14 19:11:29 +03:30
parent 0b3eaa0c3d
commit 76905ab451
17 changed files with 1724 additions and 16 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import (
"syscall"
"gl/application/health"
applicationledger "gl/application/ledger"
"gl/infrastructure/config"
"gl/infrastructure/postgres"
grpcadapter "gl/interface/grpc"
@@ -38,7 +39,7 @@ func main() {
os.Exit(1)
}
handler := grpcadapter.NewHealthHandler(health.NewService(database))
handler := grpcadapter.NewHandler(health.NewService(database), applicationledger.NewService(postgres.NewJournalRepository(database), nil))
slog.Info("starting GL gRPC service", "host", cfg.GRPC.Host, "port", cfg.GRPC.Port)
serverConfig := grpcadapter.ServerConfig{
Host: cfg.GRPC.Host,