mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
.. | ||
http_client.py | ||
http_server.py | ||
proxy.py | ||
README.md | ||
rpc_client.py | ||
rpc_server.py |
Python
- proxy.py: methods to call proxy
- rpc_{client,server}.py: RPC client/server
- http_{client,server}.py: HTTP client/server
RPC Example
Run proxy
micro proxy
Run server
# serves Say.Hello
python rpc_server.py
Run client
# calls go.micro.srv.greeter Say.Hello
python rpc_client.py
HTTP Example
Run proxy with proxy handler
micro proxy --handler=http
Run server
# serves /greeter
python http_server.py
Run client
# calls /greeter
python http_client.py