# README
Phi Suite Data.gw
Homepage | https://phisuite.com |
---|---|
GitHub | https://github.com/phisuite |
Overview
This project contains the Go module to create the Data http gateway.
For more details, see Phi Suite Data.
Installation
go get github.com/phisuite/data.gw
Creating the gateway
package main
import "github.com/phisuite/data.gw"
conn, err := grpc.DialContext(ctx, "localhost:50051")
defer conn.Close()
router := runtime.NewServeMux()
err = data.RegisterEventAPIHandler(ctx, router, conn)
err = http.ListenAndServe(":8080", router)
For more details, see grpc-gateway.