proxy/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: Apache-2.0

README

Proxy

Transparently proxy Go Micro apps

Run Proxy

# run the proxy
go run proxy/main.go --server_address=":8081"

# run the greeter
go run greeter/main.go

Call Service

Proxy the request

curl \
-H 'Content-Type: application/json' \
-H 'Micro-Service: greeter' \
-H 'Micro-Endpoint: Greeter.Hello' \
-d '{"name": "John"}' \
http://localhost:8081

Directories

Path Synopsis
proto
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