github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/proxy/README.md (about)

     1  # Proxy Sidecar
     2  
     3  The [micro proxy](https://github.com/micro/micro/tree/master/proxy) provides [go-micro](https://github.com/micro/go-micro) features as http endpoints.
     4  
     5  This directory contains examples for using the proxy with various languages.
     6  
     7  ## Usage
     8  
     9  See details below
    10  
    11  ### Run Proxy
    12  
    13  ```
    14  micro proxy
    15  ```
    16  
    17  Or with http proxy handler
    18  ```
    19  micro proxy --handler=http
    20  ```
    21  
    22  ### Service
    23  
    24  Run server
    25  ```
    26  {python, ruby} {http, rpc}_server.{py, rb}
    27  ```
    28  
    29  Run client
    30  ```
    31  {python, ruby} {http, rpc}_client.{py, rb}
    32  ```
    33  
    34  ## Examples
    35  
    36  Each language directory {python, ruby, ...} contains examples for the following:
    37  
    38  - Registering Service
    39  - JSON RPC Server and Client
    40  - HTTP Server and Client