Skip to content

wangchong666/hpor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hpor

http proxy over rabbitmq-rpc

Usage

  -c int
        The number of consumers,work with -t RPC (default 1)
  -d    log debug info
  -p int
        HTTP proxy port (default 8000)
  -q string
        The queue name for rpc (default "rpc_queue")
  -t string
        RPC or PROXY (default "RPC")
  -url string
        amqp address (default "amqp://guest:[email protected]:5672//vhost")

Start RPC Server

hpor -t RPC

with docker

docker run --rm -it jcty/hpor -t RPC -url amqp://guest:guest@host:5672/

Start Proxy Server

hpor -t PROXY

with docker

docker run --rm -it jcty/hpor -t PROXY -p 8000:8000 -url amqp://guest:guest@host:5672/

The proxy server will listen default port 8000

About

http proxy over rabbitmq-rpc

Resources

Stars

Watchers

Forks

Packages

No packages published