github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/proxy/ruby/README.md (about) 1 # Ruby 2 3 - proxy.rb: methods to call proxy 4 - rpc_{client,server}.rb: RPC client/server 5 - http_{client,server}.rb: HTTP client/server 6 7 ## RPC Example 8 9 Run proxy 10 ```shell 11 micro proxy 12 ``` 13 14 Run server 15 ```shell 16 # serves Say.Hello 17 ruby rpc_server.rb 18 ``` 19 20 Run client 21 ```shell 22 # calls go.micro.srv.greeter Say.Hello 23 ruby rpc_client.rb 24 ``` 25 26 ## HTTP Example 27 28 Run proxy with proxy handler 29 ```shell 30 micro proxy --handler=http 31 ``` 32 33 Run server 34 ```shell 35 # serves /greeter 36 ruby http_server.rb 37 ``` 38 39 Run client 40 ```shell 41 # calls /greeter 42 ruby http_client.rb 43 ```