goproxy::lion: goproxy is a proxy server which can forward http or https requests to remote servers. goproxy 是一个反向代理服务器,支持转发 httphttps 请求

时间:2024-05-19 09:10:24
【文件属性】:

文件名称:goproxy::lion: goproxy is a proxy server which can forward http or https requests to remote servers. goproxy 是一个反向代理服务器,支持转发 httphttps 请求

文件大小:42KB

文件格式:ZIP

更新时间:2024-05-19 09:10:24

proxy proxy-server loadbalancing Go

简体| Goproxy goproxy是在go中实现的负载平衡,反向代理服务器,支持缓存(在内存或Redis中)。 作为负载均衡服务器,它支持4种算法:随机算法,加权轮循算法,两种选择的能力(P2C)算法,IP哈希算法,带有受限负载的一致哈希算法,此外,goproxy可以主导http请求:过滤并阻止特定请求甚至重写它们。 有时您的程序需要调用某些第三方API并希望自定义它的响应,在这种情况下,goproxy将是您的理想选择。 :rocket: 特征: 在goproxy中支持反向代理,6种负载均衡算法:随机,IP哈希,轮循,权重轮循,两种选择的幂(P2C),有界负载的一致哈希 在goproxy中支持http中的GET / POST / PUT / DELETE方法和https中的CONNECT方法 支持HTTP认证 过滤和阻止特定的http请求,甚至用goproxy重写它们 自定义来自第三方AP


【文件预览】:
goproxy-master
----.gitignore(274B)
----go.mod(2KB)
----interface()
--------cacher.go(289B)
----handler()
--------auth.go(2KB)
--------status.go(224B)
--------cache.go(1KB)
--------proxy.go(3KB)
--------rebalance.go(3KB)
--------headers.go(791B)
----.travis.yml(261B)
----server.go(338B)
----LICENSE(34KB)
----go.sum(10KB)
----cache()
--------redis_cache_pool.go(2KB)
--------cache.go(4KB)
--------util.go(2KB)
--------cache_pool.go(762B)
--------mem_cache_pool.go(2KB)
----README.md(6KB)
----config()
--------init.go(915B)
--------cfg.toml(644B)
----tool()
--------util.go(2KB)
--------hashring.go(6KB)
--------regexp.go(5KB)
----README_ZH.md(6KB)
----test()
--------server_test.go(2KB)
--------config()

网友评论