initial commit

This commit is contained in:
Семен Каменецкий
2026-09-15 15:31:54 +03:00
parent 702f108aff
commit 09dd1f7217
65 changed files with 4640 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
package main
import (
"backbone/internal/app/handler/debugh"
"backbone/internal/pkg/app"
svc "backbone/pkg/pb/api/services"
"log"
"google.golang.org/grpc"
)
func main() {
a := app.New(
app.WithSwaggerUI(),
app.WithStatic(),
)
debugH := debugh.New()
a.RegisterServices(func(gs *grpc.Server) {
svc.RegisterDebugAPIServer(gs, debugH)
})
a.RegisterGateways(
svc.RegisterDebugAPIHandler,
)
if err := a.ListenAndServe(); err != nil {
log.Fatal(err)
}
}