Skip to content

Commit 85dc0dc

Browse files
committed
v4 release with context support
1 parent 37e0315 commit 85dc0dc

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
Go-ReJSON is a [Go](https://golang.org/) client for [ReJSON](https://github.com/RedisLabsModules/rejson) Redis Module.
44

5-
[![GoDoc](https://godoc.org/github.com/nitishm/go-rejson?status.svg)](https://godoc.org/github.com/nitishm/go-rejson)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/nitishm/go-rejson.svg)](https://pkg.go.dev/github.com/nitishm/go-rejson)
66
[![Build Status](https://travis-ci.org/nitishm/go-rejson.svg?branch=master)](https://travis-ci.org/nitishm/go-rejson)
77
[![codecov](https://coveralls.io/repos/github/nitishm/go-rejson/badge.svg?branch=master)](https://coveralls.io/github/nitishm/go-rejson?branch=master)
88
[![Go Report Card](https://goreportcard.com/badge/github.com/nitishm/go-rejson)](https://goreportcard.com/report/github.com/nitishm/go-rejson)
9+
[![GitHub release](https://img.shields.io/github/release/nitishm/go-rejson.svg)](https://github.com/nitishm/go-rejson/releases)
910

1011
> ReJSON is a Redis module that implements ECMA-404 The JSON Data Interchange Standard as a native data type. It allows storing, updating and fetching JSON values from Redis keys (documents).
1112
@@ -38,7 +39,7 @@ import (
3839
"fmt"
3940
"log"
4041

41-
"github.com/nitishm/go-rejson"
42+
"github.com/nitishm/go-rejson/v4"
4243
goredis "github.com/go-redis/redis/v8"
4344
"github.com/gomodule/redigo/redis"
4445
)

clients/goredis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77

88
goredis "github.com/go-redis/redis/v8"
9-
"github.com/nitishm/go-rejson/rjs"
9+
"github.com/nitishm/go-rejson/v4/rjs"
1010
)
1111

1212
// GoRedis implements ReJSON interface for Go-Redis/Redis Redis client

clients/redigo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package clients
33
import (
44
"fmt"
55
redigo "github.com/gomodule/redigo/redis"
6-
"github.com/nitishm/go-rejson/rjs"
6+
"github.com/nitishm/go-rejson/v4/rjs"
77
"strings"
88
)
99

context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package rejson
22

33
import (
44
"context"
5-
"github.com/nitishm/go-rejson/clients"
6-
"github.com/nitishm/go-rejson/rjs"
5+
"github.com/nitishm/go-rejson/v4/clients"
6+
"github.com/nitishm/go-rejson/v4/rjs"
77
)
88

99
// SetContext helps redis-clients, provide use of command level context

doc.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ features and functionalities in a more generic and standard way.
2525
Installation
2626
2727
28-
To install and use ReJSON module, one must have the pre-requisites installed and setup. Follow the following steps :
29-
go get github.com/nitishm/go-rejson
30-
cd $GOPATH/src/github.com/nitishm/go-rejson
28+
To install and use ReJSON module, one must have the pre-requisites installed and setup. Run the script in :
29+
3130
./install-redis-rejson.sh
3231
3332

examples/json_array/json_array.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"fmt"
88
"log"
99

10-
"github.com/nitishm/go-rejson/rjs"
10+
"github.com/nitishm/go-rejson/v4/rjs"
1111

1212
goredis "github.com/go-redis/redis/v8"
1313
"github.com/gomodule/redigo/redis"
14-
"github.com/nitishm/go-rejson"
14+
"github.com/nitishm/go-rejson/v4"
1515
)
1616

1717
var ctx = context.Background()

examples/json_obj/json_obj.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"fmt"
88
"log"
99

10-
"github.com/nitishm/go-rejson"
11-
"github.com/nitishm/go-rejson/rjs"
10+
"github.com/nitishm/go-rejson/v4"
11+
"github.com/nitishm/go-rejson/v4/rjs"
1212

1313
goredis "github.com/go-redis/redis/v8"
1414
"github.com/gomodule/redigo/redis"

examples/json_set/json_set.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
goredis "github.com/go-redis/redis/v8"
1111
"github.com/gomodule/redigo/redis"
12-
"github.com/nitishm/go-rejson"
12+
"github.com/nitishm/go-rejson/v4"
1313
)
1414

1515
var ctx = context.Background()

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/nitishm/go-rejson
1+
module github.com/nitishm/go-rejson/v4
22

33
go 1.14
44

rejson.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package rejson
22

33
import (
4-
"github.com/nitishm/go-rejson/rjs"
4+
"github.com/nitishm/go-rejson/v4/rjs"
55
)
66

77
type Handler struct {

rejson_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"reflect"
77
"testing"
88

9-
"github.com/nitishm/go-rejson/rjs"
9+
"github.com/nitishm/go-rejson/v4/rjs"
1010

1111
goredis "github.com/go-redis/redis/v8"
1212
redigo "github.com/gomodule/redigo/redis"

set_client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
goredis "github.com/go-redis/redis/v8"
66
redigo "github.com/gomodule/redigo/redis"
7-
"github.com/nitishm/go-rejson/clients"
8-
"github.com/nitishm/go-rejson/rjs"
7+
"github.com/nitishm/go-rejson/v4/clients"
8+
"github.com/nitishm/go-rejson/v4/rjs"
99
)
1010

1111
// RedisClient provides interface for Client handling in the ReJSON Handler

0 commit comments

Comments
 (0)