Skip to content

Commit

Permalink
feat: v2 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
yeqown committed Oct 16, 2020
1 parent ed73ac3 commit 14c1be5
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# fasthttp-reverse-proxy
![](https://img.shields.io/badge/LICENSE-MIT-blue.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/yeqown/fasthttp-reverse-proxy)](https://goreportcard.com/report/github.com/yeqown/fasthttp-reverse-proxy) [![GoReportCard](https://godoc.org/github.com/yeqown/fasthttp-reverse-proxy?status.svg)](https://godoc.org/github.com/yeqown/fasthttp-reverse-proxy)
![](https://img.shields.io/badge/LICENSE-MIT-blue.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/yeqown/fasthttp-reverse-proxy/v2)](https://goreportcard.com/report/github.com/yeqown/fasthttp-reverse-proxy/v2) [![GoReportCard](https://godoc.org/github.com/yeqown/fasthttp-reverse-proxy/v2?status.svg)](https://godoc.org/github.com/yeqown/fasthttp-reverse-proxy/v2)

reverse http proxy hander based on fasthttp.

Expand All @@ -23,7 +23,7 @@ import (
"log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down Expand Up @@ -60,7 +60,7 @@ import (
"text/template"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion benchmark/ws_proxy_benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"syscall"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions docs/ws-benchmark.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import (
"syscall"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down Expand Up @@ -195,7 +195,7 @@ Flat Flat% Sum% Cum Cum% Name Inlined?
0 0.00% 92.31% 1.26s 30.29% net.(*conn).Read
0 0.00% 92.31% 1.11s 26.68% internal/poll.(*FD).Write
0 0.00% 92.31% 1.26s 30.29% internal/poll.(*FD).Read
0 0.00% 92.31% 2.86s 68.75% github.com/yeqown/fasthttp-reverse-proxy.replicateWebsocketConn
0 0.00% 92.31% 2.86s 68.75% github.com/yeqown/fasthttp-reverse-proxy/v2.replicateWebsocketConn
0 0.00% 92.31% 1.35s 32.45% github.com/fasthttp/websocket.(*messageWriter).flushFrame
0 0.00% 92.31% 0.82s 19.71% github.com/fasthttp/websocket.(*messageWriter).Close
0 0.00% 92.31% 1.39s 33.41% github.com/fasthttp/websocket.(*Conn).read
Expand Down
2 changes: 1 addition & 1 deletion examples/fasthttp-reverse-proxy-with-bla/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/fasthttp-reverse-proxy-with-pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/fasthttp-reverse-proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/yeqown/log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/https-reverse-proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/yeqown/log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples/ws-fasthttp-reverse-proxy/ws_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"

"github.com/valyala/fasthttp"
proxy "github.com/yeqown/fasthttp-reverse-proxy"
proxy "github.com/yeqown/fasthttp-reverse-proxy/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/yeqown/fasthttp-reverse-proxy
module github.com/yeqown/fasthttp-reverse-proxy/v2

require (
github.com/fasthttp/websocket v1.4.1
Expand Down

0 comments on commit 14c1be5

Please sign in to comment.