gateway

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

GRPC Gateway

This directory contains a grpc gateway generated using grpc-ecosystem/grpc-gateway.

Services written with micro/go-grpc are fully compatible with the grpc-gateway and any other grpc services.

Go to grpc-ecosystem/grpc-gateway for details on how to generate gateways. We have generated the gateway from the same proto as the greeter server but with additional options for the gateway.

Usage

Run the go.micro.srv.greeter service

go run ../server/main.go --server_address=localhost:9090

Run the gateway

go run main.go

Curl your request at the gateway (localhost:8080)

curl -d '{"name": "john"}' http://localhost:8080/greeter/hello

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
hello
Package greeter is a generated protocol buffer package.
Package greeter is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL