gateway

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GRPC Gateway

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

Services written with micro/go-micro/service/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 ../greeter/srv/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