init gateway-service

This commit is contained in:
2023-09-27 17:19:25 +01:00
parent b725dae0f9
commit 4aa5cd6dfc
29 changed files with 6871 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
"github.com/hexolan/panels/gateway-service/internal"
"github.com/hexolan/panels/gateway-service/internal/api"
"github.com/hexolan/panels/gateway-service/internal/rpc"
)
func main() {
// Load the configuration
cfg := internal.NewConfig()
// Connect to the RPC services
rpc.DialRPCServices(cfg)
// Serve the api.
app := api.NewAPIApp(cfg)
api.ServeAPIApp(app)
}

View File

@@ -0,0 +1,8 @@
//go:build tools
package main
import (
// Protobuf Generation
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
)