sidecar/

directory
v0.0.0-...-e01b0a5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2017 License: Apache-2.0

README

Sidecar Examples

The micro sidecar is a language agnostic proxy which provides all the features of go-micro as a HTTP server. To learn more about the sidecar look here.

This directory contains examples for using the sidecar with various languages.

## Usage

Run Discovery

Use Consul

brew install consul
consul agent -dev

Alternatively run sidecar with --registry=mdns for multicast dns and zero dependencies.

Run Sidecar
micro sidecar

Or with http proxy handler

micro sidecar --handler=proxy
Service

Run server

{python, ruby} {http, rpc}_server.{py, rb}

Run client

{python, ruby} {http, rpc}_client.{py, rb}

Examples

Each language directory {python, ruby, ...} contains examples for the following:

  • Registering Service
  • JSON RPC Server and Client
  • HTTP Server and Client

Directories

Path Synopsis
+build main1
+build main1

Jump to

Keyboard shortcuts

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