Skip to content

Commit

Permalink
Rename k1LoW to 2manymws
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 15, 2023
1 parent 2c09e71 commit f973d79
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# rp [![Go Reference](https://pkg.go.dev/badge/github.com/k1LoW/rp.svg)](https://pkg.go.dev/github.com/k1LoW/rp) [![build](https://github.com/k1LoW/rp/actions/workflows/ci.yml/badge.svg)](https://github.com/k1LoW/rp/actions/workflows/ci.yml) ![Coverage](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/coverage.svg) ![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/ratio.svg) ![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/time.svg)
# rp [![Go Reference](https://pkg.go.dev/badge/github.com/2manymws/rp.svg)](https://pkg.go.dev/github.com/2manymws/rp) [![build](https://github.com/2manymws/rp/actions/workflows/ci.yml/badge.svg)](https://github.com/2manymws/rp/actions/workflows/ci.yml) ![Coverage](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/coverage.svg) ![Code to Test Ratio](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/ratio.svg) ![Test Execution Time](https://raw.githubusercontent.com/k1LoW/octocovs/main/badges/k1LoW/rp/time.svg)

`rp` is a **r**everse **p**roxy package for multiple domains and multiple upstreams.

## Usage

Prepare an instance that implements [`rp.Relayer`](https://pkg.go.dev/github.com/k1LoW/rp#Relayer) interface.
Prepare an instance that implements [`rp.Relayer`](https://pkg.go.dev/github.com/2manymws/rp#Relayer) interface.

And then, create a new `http.Server` using [`rp.NewServer`](https://pkg.go.dev/github.com/k1LoW/rp#NewServer) or [`rp.NewTLSServer`](https://pkg.go.dev/github.com/k1LoW/rp#NewTLSServer) with the instance.
And then, create a new `http.Server` using [`rp.NewServer`](https://pkg.go.dev/github.com/2manymws/rp#NewServer) or [`rp.NewTLSServer`](https://pkg.go.dev/github.com/2manymws/rp#NewTLSServer) with the instance.

Use [`rp.NewServer`](https://pkg.go.dev/github.com/k1LoW/rp#NewServer) ( [`rp.ListenAndServe`](https://pkg.go.dev/github.com/k1LoW/rp#ListenAndServe) ) if handling per-domain (or per-request, as the case may be) upstreams.
Use [`rp.NewServer`](https://pkg.go.dev/github.com/2manymws/rp#NewServer) ( [`rp.ListenAndServe`](https://pkg.go.dev/github.com/2manymws/rp#ListenAndServe) ) if handling per-domain (or per-request, as the case may be) upstreams.

```go
package main
Expand All @@ -17,7 +17,7 @@ import (
"log"
"net/http"

"github.com/k1LoW/rp"
"github.com/2manymws/rp"
)

func main() {
Expand All @@ -26,7 +26,7 @@ func main() {
}
```

Use [`rp.NewTLSServer`](https://pkg.go.dev/github.com/k1LoW/rp#NewTLSServer) ( [`rp.ListenAndServeTLS`](https://pkg.go.dev/github.com/k1LoW/rp#ListenAndServeTLS) )if handling per-domain TLS termination as well as per-domain HTTP request routing.
Use [`rp.NewTLSServer`](https://pkg.go.dev/github.com/2manymws/rp#NewTLSServer) ( [`rp.ListenAndServeTLS`](https://pkg.go.dev/github.com/2manymws/rp#ListenAndServeTLS) )if handling per-domain TLS termination as well as per-domain HTTP request routing.

```go
package main
Expand All @@ -35,7 +35,7 @@ import (
"log"
"net/http"

"github.com/k1LoW/rp"
"github.com/2manymws/rp"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http/httptest"
"testing"

"github.com/k1LoW/rp"
"github.com/k1LoW/rp/testutil"
"github.com/2manymws/rp"
"github.com/2manymws/rp/testutil"
)

func BenchmarkNGINX(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions example/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/k1LoW/rp/example
module github.com/2manymws/rp/example

go 1.21.1

require github.com/k1LoW/rp v0.4.4
require github.com/2manymws/rp v0.4.4

require github.com/ory/dockertest/v3 v3.10.0 // indirect
4 changes: 2 additions & 2 deletions example/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaU
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/k1LoW/rp v0.4.3 h1:3oXz6eZEAm8/2FgEynpPZNxx8KbYeRcNmxYotFAEeRg=
github.com/k1LoW/rp v0.4.3/go.mod h1:yIx02DG7bbtOFNy5us4BWCZ9q4n4u1YnNHo3YlYMQxk=
github.com/2manymws/rp v0.4.3 h1:3oXz6eZEAm8/2FgEynpPZNxx8KbYeRcNmxYotFAEeRg=
github.com/2manymws/rp v0.4.3/go.mod h1:yIx02DG7bbtOFNy5us4BWCZ9q4n4u1YnNHo3YlYMQxk=
github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag=
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 h1:rzf0wL0CHVc8CEsgyygG0Mn9CNCCPZqOPaz8RiiHYQk=
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http/httputil"
"net/url"

"github.com/k1LoW/rp"
"github.com/2manymws/rp"
)

type myRelayer struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/k1LoW/rp
module github.com/2manymws/rp

go 1.21.0
4 changes: 2 additions & 2 deletions rp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"testing"
"time"

"github.com/k1LoW/rp"
"github.com/k1LoW/rp/testutil"
"github.com/2manymws/rp"
"github.com/2manymws/rp/testutil"
)

var _ rp.Relayer = &testutil.Relayer{}
Expand Down
2 changes: 1 addition & 1 deletion testdata/go_test.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/k1LoW/rp
module github.com/2manymws/rp

go 1.21.0

Expand Down
4 changes: 2 additions & 2 deletions testdata/performance.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"net/url"

"github.com/k1LoW/rp"
"github.com/k1LoW/rp/testutil"
"github.com/2manymws/rp"
"github.com/2manymws/rp/testutil"
)

func main() {
Expand Down

0 comments on commit f973d79

Please sign in to comment.