Skip to content

Latest commit

 

History

History
 
 

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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