项目
在 GitHub 查看
xsank/EasyProxy
关于
Make tcp proxy easy to use.
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文EasyProxy
A simple proxy server.
Introduction
+----------+ +------------+
| client |<--------+ | |
+----------+ +-------->+-----+<--------------->| server |
| | | |
+----------+ | | +------------+
| client |<----------------->| |
+----------+ | |
| | +------------+
+----------+ | L | | |
| client |<----------------->| B |<--------------->| server |
+----------+ | S | | |
| | +------------+
+----------+ | |
| client |<----------------->| |
+----------+ | | +------------+
| | | |
+----------+ +--------->+-----+<--------------->| server |
| client |<-------+ | |
+----------+ +------------+
As the chart above, easyproxy act as the LBS server. If you meet the situation that cannot access some service directly or need a server as a gateway, you may use this to proxy.
Usage
go get github.com/xsank/EasyProxy
go run build.go build
- The sample config is about mysql proxy, so you can access the mysql database actually at backend
through the
localhost 9527, you can easily modify thedefault.jsonto change the service. Any protocol based onTCPwould work well such as:mysql, ssh, svn... - For keep simple, easyproxy only support
poll,random,iphashstrategies, and the default strategy ispoll,the easyproxy would add more if there is a demand. - Besides, you can
curl localhost:7259/statisticto get the current connection status. If you want to know more runtime debug info about the proxy, you cancurl http://localhost:7259/debug/pprofto get more details. - You can change the number of MAX processorsand and the heartbeat time based on your requirements.
License
Easyproxy is distributed under MIT License.
探索相关项目
加载中…