Skip to content

Commit

Permalink
Repository moved
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <[email protected]>
  • Loading branch information
rustatian committed Jan 15, 2022
1 parent 66599b9 commit 4a00202
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 43 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ v3.2.0 (09.08.2021)

## 🚀 New:

- ✏️ 50% reduce bound checks in the frame's operations. [PR](https://github.com/spiral/goridge/pull/143)
- ✏️ 50% reduce bound checks in the frame's operations. [PR](https://github.com/roadrunner-server/goridge/pull/143)
-

## 🩹 Fixes:
Expand All @@ -71,7 +71,7 @@ v3.1.4 (14.06.2021)

## 🩹 Fixes:

- 🐛 Fix: Duplicated RPC error message: [PR](https://github.com/spiral/goridge/pull/129)
- 🐛 Fix: Duplicated RPC error message: [PR](https://github.com/roadrunner-server/goridge/pull/129)

---

Expand All @@ -80,7 +80,7 @@ v3.1.3 (11.06.2021)

## 🩹 Fixes:

- 🐛 Fix: Performance optimization fixes [PR](https://github.com/spiral/goridge/pull/127)
- 🐛 Fix: Performance optimization fixes [PR](https://github.com/roadrunner-server/goridge/pull/127)

---

Expand Down Expand Up @@ -139,15 +139,15 @@ v3.1.0 (09.06.2021)
- Improve Relay factory and SocketRelay
- Improve test coverage
- Performance improvements
- See the full milestone here: [link](https://github.com/spiral/goridge/milestone/5?closed=1)
- See the full milestone here: [link](https://github.com/roadrunner-server/goridge/milestone/5?closed=1)

## v2.4.0 (05.05.2020)

- More tests for PHP (@vvval)
- Upgrade PHP version to the 7.2 (currently minimum supported)
- Add new RelayInterface [link](https://github.com/spiral/goridge/pull/56/files#diff-85a3f483116946b4093f21ad855af4a8) (
- Add new RelayInterface [link](https://github.com/roadrunner-server/goridge/pull/56/files#diff-85a3f483116946b4093f21ad855af4a8) (
@vvval)
- See the full milestone here: [link](https://github.com/spiral/goridge/issues?q=is%3Aclosed+milestone%3A2.4.0)
- See the full milestone here: [link](https://github.com/roadrunner-server/goridge/issues?q=is%3Aclosed+milestone%3A2.4.0)

## v2.3.1 (21.04.2020)

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
High-performance PHP-to-Golang IPC bridge
=================================================
[![Latest Stable Version](https://poser.pugx.org/spiral/goridge/v/stable)](https://packagist.org/packages/spiral/goridge)
[![GoDoc](https://godoc.org/github.com/spiral/goridge/v3?status.svg)](https://godoc.org/github.com/spiral/goridge/v3)
![Linux](https://github.com/spiral/goridge/workflows/Linux/badge.svg)
![macOS](https://github.com/spiral/goridge/workflows/MacOS/badge.svg)
![Windows](https://github.com/spiral/goridge/workflows/Windows/badge.svg)
![Linters](https://github.com/spiral/goridge/workflows/Linters/badge.svg)
[![GoDoc](https://godoc.org/github.com/roadrunner-server/goridge/v3?status.svg)](https://godoc.org/github.com/roadrunner-server/goridge/v3)
![Linux](https://github.com/roadrunner-server/goridge/workflows/Linux/badge.svg)
![macOS](https://github.com/roadrunner-server/goridge/workflows/MacOS/badge.svg)
![Windows](https://github.com/roadrunner-server/goridge/workflows/Windows/badge.svg)
![Linters](https://github.com/roadrunner-server/goridge/workflows/Linters/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/spiral/goridge)](https://goreportcard.com/report/github.com/spiral/goridge)
[![Codecov](https://codecov.io/gh/spiral/goridge/branch/master/graph/badge.svg)](https://codecov.io/gh/spiral/goridge/)
<a href="https://discord.gg/TFeEmCs"><img src="https://img.shields.io/badge/discord-chat-magenta.svg"></a>
Expand All @@ -14,7 +14,7 @@ High-performance PHP-to-Golang IPC bridge

Goridge is high performance PHP-to-Golang codec library which works over native PHP sockets and Golang net/rpc package.
The library allows you to call Go service methods from PHP with a minimal footprint, structures and `[]byte` support.
PHP source code can be found in this repository: [goridge-php](https://github.com/spiral/goridge-php)
PHP source code can be found in this repository: [goridge-php](https://github.com/roadrunner-server/goridge-php)

<br/>
See https://github.com/spiral/roadrunner - High-performance PHP application server, load-balancer and process manager written in Golang
Expand All @@ -41,7 +41,7 @@ Installation
------------

```go
GO111MODULE=on go get github.com/spiral/goridge/v3
GO111MODULE=on go get github.com/roadrunner-server/goridge/v3
```

### Sample of usage
Expand All @@ -53,7 +53,7 @@ import (
"net"
"net/rpc"

goridgeRpc "github.com/spiral/goridge/v3/pkg/rpc"
goridgeRpc "github.com/roadrunner-server/goridge/v3/pkg/rpc"
)

type App struct{}
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/rpc"
"time"

goridgeRpc "github.com/spiral/goridge/v3/pkg/rpc"
"github.com/spiral/goridge/v3/test"
goridgeRpc "github.com/roadrunner-server/goridge/v3/pkg/rpc"
"github.com/roadrunner-server/goridge/v3/test"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/spiral/goridge/v3
module github.com/roadrunner-server/goridge/v3

go 1.17

require (
github.com/json-iterator/go v1.1.12
github.com/spiral/errors v1.0.12
github.com/roadrunner-server/errors v1.1.0
github.com/stretchr/testify v1.7.0
github.com/vmihailenco/msgpack/v5 v5.3.5
google.golang.org/protobuf v1.27.1
Expand Down
5 changes: 2 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spiral/errors v1.0.12 h1:38Waf8ZL/Xvxg4HTYGmrUbvi7TCHivmuatNQZlBhQ8s=
github.com/spiral/errors v1.0.12/go.mod h1:j5UReqxZxfkwXkI9mFY87VhEXcXmSg7kAk5Sswy1eEA=
github.com/roadrunner-server/errors v1.1.0 h1:ZjsvlJJkOpxNrZebo8DeXTCbytBIs+j2PjSrFmtqDAI=
github.com/roadrunner-server/errors v1.1.0/go.mod h1:MzHjhRZIZc1ooMyYllUhNs0aTqRUbwcgUSO0TN7kCII=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down
4 changes: 2 additions & 2 deletions internal/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
stderr "errors"
"io"

"github.com/spiral/errors"
"github.com/spiral/goridge/v3/pkg/frame"
"github.com/roadrunner-server/errors"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
)

// shortland for the Could not open input file: ../roadrunner/tests/psr-wfsdorker.php
Expand Down
6 changes: 3 additions & 3 deletions pkg/pipe/pipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package pipe
import (
"io"

"github.com/spiral/errors"
"github.com/spiral/goridge/v3/internal"
"github.com/spiral/goridge/v3/pkg/frame"
"github.com/roadrunner-server/errors"
"github.com/roadrunner-server/goridge/v3/internal"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
)

// Relay ... PipeRelay communicate with underlying process using standard streams (STDIN, STDOUT). Attention, use TCP alternative for
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipe/pipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"testing"

"github.com/spiral/goridge/v3/pkg/frame"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/relay/interface.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package relay

import "github.com/spiral/goridge/v3/pkg/frame"
import "github.com/roadrunner-server/goridge/v3/pkg/frame"

// Relay provide IPC over signed payloads.
type Relay interface {
Expand Down
8 changes: 4 additions & 4 deletions pkg/rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"sync"

json "github.com/json-iterator/go"
"github.com/spiral/errors"
"github.com/spiral/goridge/v3/pkg/frame"
"github.com/spiral/goridge/v3/pkg/relay"
"github.com/spiral/goridge/v3/pkg/socket"
"github.com/roadrunner-server/errors"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
"github.com/roadrunner-server/goridge/v3/pkg/relay"
"github.com/roadrunner-server/goridge/v3/pkg/socket"
"github.com/vmihailenco/msgpack/v5"
"google.golang.org/protobuf/proto"
)
Expand Down
7 changes: 5 additions & 2 deletions pkg/rpc/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import (
"sync"
"testing"

"github.com/spiral/errors"
"github.com/spiral/goridge/v3/test"
"github.com/roadrunner-server/errors"
"github.com/roadrunner-server/goridge/v3/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/proto"
)

Expand Down Expand Up @@ -224,6 +225,8 @@ func TestClientServerRaw(t *testing.T) {
resp := make([]byte, 0, 10000)
assert.NoError(t, client.Call("testBinary.EchoBinary", data, &resp))

require.Equal(t, data, resp)

t.Cleanup(func() {
err2 := client.Close()
if err2 != nil {
Expand Down
8 changes: 4 additions & 4 deletions pkg/rpc/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"sync"

json "github.com/json-iterator/go"
"github.com/spiral/errors"
"github.com/roadrunner-server/errors"

"github.com/spiral/goridge/v3/pkg/frame"
"github.com/spiral/goridge/v3/pkg/relay"
"github.com/spiral/goridge/v3/pkg/socket"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
"github.com/roadrunner-server/goridge/v3/pkg/relay"
"github.com/roadrunner-server/goridge/v3/pkg/socket"
"github.com/vmihailenco/msgpack/v5"
"google.golang.org/protobuf/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/shared_memory/posix/posix_shm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package posix
import (
"testing"

"github.com/spiral/goridge/v3/pkg/shared_memory/test"
"github.com/roadrunner-server/goridge/v3/pkg/shared_memory/test"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/socket/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package socket
import (
"io"

"github.com/spiral/errors"
"github.com/spiral/goridge/v3/internal"
"github.com/spiral/goridge/v3/pkg/frame"
"github.com/roadrunner-server/errors"
"github.com/roadrunner-server/goridge/v3/internal"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
)

// Relay communicates with underlying process using sockets (TPC or Unix).
Expand Down
2 changes: 1 addition & 1 deletion pkg/socket/socket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net"
"testing"

"github.com/spiral/goridge/v3/pkg/frame"
"github.com/roadrunner-server/goridge/v3/pkg/frame"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 4a00202

Please sign in to comment.