Categorygithub.com/phisuite/data.gw
module
0.0.3
Repository: https://github.com/phisuite/data.gw.git
Documentation: pkg.go.dev

# README

Phi Suite Data.gw

Homepagehttps://phisuite.com
GitHubhttps://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.