Skip to content

Commit b81912d

Browse files
committed
update repository
1 parent 892c9f0 commit b81912d

27 files changed

+48
-46
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
</p>
77
</div>
88

9-
<a href="https://github.com/syntax-framework/syntax"><img width="160" src="./docs/logo-syntax.png" /></a>
9+
[//]: # (<a href="https://github.com/syntax-framework/syntax"><img width="160" src="./docs/logo-syntax.png" /></a>)
1010

11-
**chain** is part of the [Syntax Framework](https://github.com/syntax-framework/syntax)
11+
[//]: # ()
12+
[//]: # (**chain** is part of the [Syntax Framework]&#40;https://github.com/syntax-framework/syntax&#41;)
1213

1314
---
1415

@@ -25,7 +26,7 @@ elegant and safe way.
2526
## Installation
2627

2728
```
28-
go get github.com/syntax-framework/chain
29+
go get github.com/nidorx/chain
2930
```
3031

3132
## Router
@@ -47,7 +48,7 @@ It also scales better.
4748
package main
4849

4950
import (
50-
"github.com/syntax-framework/chain"
51+
"github.com/nidorx/chain"
5152
"log"
5253
"net/http"
5354
)
@@ -109,8 +110,8 @@ package main
109110

110111
import (
111112
"fmt"
112-
"github.com/syntax-framework/chain"
113-
"github.com/syntax-framework/chain/pubsub"
113+
"github.com/nidorx/chain"
114+
"github.com/nidorx/chain/pubsub"
114115
"time"
115116
)
116117

@@ -173,8 +174,8 @@ Server
173174
package main
174175

175176
import (
176-
"github.com/syntax-framework/chain"
177-
"github.com/syntax-framework/chain/socket"
177+
"github.com/nidorx/chain"
178+
"github.com/nidorx/chain/socket"
178179
"log"
179180
"net/http"
180181
)

crypto.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package chain
22

33
import (
44
"bytes"
5-
"github.com/syntax-framework/chain/crypto"
65
"sync"
6+
7+
"github.com/nidorx/chain/crypto"
78
)
89

910
type SecretKeySyncFunc func(key string)

crypto_keyring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package chain
22

33
import (
4+
"github.com/nidorx/chain/crypto"
45
"github.com/rs/zerolog/log"
5-
"github.com/syntax-framework/chain/crypto"
66
)
77

88
// NewKeyring starts a Keyring that will be updated whenever SecretKeySync() is invoked

crypto_shortcuts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package chain
22

3-
import "github.com/syntax-framework/chain/crypto"
3+
import "github.com/nidorx/chain/crypto"
44

55
var (
66
crypt = &cryptoShortcuts{}

docs/CRYPTO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ println(base64.StdEncoding.EncodeToString(signSecret))
116116

117117
`MessageVerifier` makes it easy to generate and verify messages which are signed to prevent tampering.
118118

119-
For example, the [cookie store](https://github.com/syntax-framework/chain/blob/main/middlewares/session/store_cookie.go)
119+
For example, the [cookie store](https://github.com/nidorx/chain/blob/main/middlewares/session/store_cookie.go)
120120
uses this verifier to send data to the client. The data can be read by the client, but cannot be tampered with.
121121

122122
The message and its verification are base64url encoded and returned to you.

docs/PUBSUB.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ package main
1111

1212
import (
1313
"fmt"
14-
"github.com/syntax-framework/chain"
15-
"github.com/syntax-framework/chain/pubsub"
14+
"github.com/nidorx/chain"
15+
"github.com/nidorx/chain/pubsub"
1616
"time"
1717
)
1818

@@ -58,7 +58,7 @@ Chain PubSub was designed to be flexible and support multiple backends.
5858

5959
![pubsub-adapter.png](pubsub-adapter.png)
6060

61-
The [`Interface`](https://github.com/syntax-framework/chain/blob/7e2b575140931f1ff8a50540519ec287ec5c8078/pubsub/pubsub.go#L12-L18)
61+
The [`Interface`](https://github.com/nidorx/chain/blob/7e2b575140931f1ff8a50540519ec287ec5c8078/pubsub/pubsub.go#L12-L18)
6262
of an Adapter is very simple, making it easy to implement custom adapters.
6363

6464
The `Subscribe(topic string)` and `Unsubscribe(topic string)` methods are invoked by PubSub ensuring that the current
@@ -91,8 +91,8 @@ RedisAdapter.
9191
package main
9292

9393
import (
94-
"github.com/syntax-framework/chain/pubsub"
95-
"github.com/syntax-framework/chain-pubsub-redis"
94+
"github.com/nidorx/chain/pubsub"
95+
"github.com/nidorx/chain-pubsub-redis"
9696
)
9797

9898
func main() {

examples/crypto/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"encoding/base64"
5-
"github.com/syntax-framework/chain"
5+
"github.com/nidorx/chain"
66
)
77

88
func main() {

examples/pubsub/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package main
22

33
import (
44
"fmt"
5-
"github.com/syntax-framework/chain"
6-
"github.com/syntax-framework/chain/pubsub"
5+
"github.com/nidorx/chain"
6+
"github.com/nidorx/chain/pubsub"
77
"time"
88
)
99

examples/router/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/syntax-framework/chain"
4+
"github.com/nidorx/chain"
55
"log"
66
"net/http"
77
)

examples/socket-chat/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"embed"
55
"fmt"
6-
"github.com/syntax-framework/chain"
7-
"github.com/syntax-framework/chain/socket"
6+
"github.com/nidorx/chain"
7+
"github.com/nidorx/chain/socket"
88
"log"
99
"net/http"
1010
"os"

0 commit comments

Comments
 (0)