Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway is the gRPC gateway to serve HTTP JSON traffic as a proxy and forward it to the gRPC server.
func New ¶
func New( ctx context.Context, remoteAddress, gatewayAddress string, allowedOrigins []string, ) *Gateway
New returns a new gateway server which translates HTTP into gRPC. Accepts a context and optional http.ServeMux.
func (*Gateway) Start ¶
func (g *Gateway) Start()
Start the gateway service. This serves the HTTP JSON traffic.
Click to show internal directories.
Click to hide internal directories.