Skip to content

Commit

Permalink
v4 release with context support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam010 committed Dec 26, 2020
1 parent 37e0315 commit 85dc0dc
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

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

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

> 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).
Expand Down Expand Up @@ -38,7 +39,7 @@ import (
"fmt"
"log"

"github.com/nitishm/go-rejson"
"github.com/nitishm/go-rejson/v4"
goredis "github.com/go-redis/redis/v8"
"github.com/gomodule/redigo/redis"
)
Expand Down
2 changes: 1 addition & 1 deletion clients/goredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

goredis "github.com/go-redis/redis/v8"
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/rjs"
)

// GoRedis implements ReJSON interface for Go-Redis/Redis Redis client
Expand Down
2 changes: 1 addition & 1 deletion clients/redigo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clients
import (
"fmt"
redigo "github.com/gomodule/redigo/redis"
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/rjs"
"strings"
)

Expand Down
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package rejson

import (
"context"
"github.com/nitishm/go-rejson/clients"
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/clients"
"github.com/nitishm/go-rejson/v4/rjs"
)

// SetContext helps redis-clients, provide use of command level context
Expand Down
5 changes: 2 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ features and functionalities in a more generic and standard way.
Installation
To install and use ReJSON module, one must have the pre-requisites installed and setup. Follow the following steps :
go get github.com/nitishm/go-rejson
cd $GOPATH/src/github.com/nitishm/go-rejson
To install and use ReJSON module, one must have the pre-requisites installed and setup. Run the script in :
./install-redis-rejson.sh
Expand Down
4 changes: 2 additions & 2 deletions examples/json_array/json_array.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"log"

"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/rjs"

goredis "github.com/go-redis/redis/v8"
"github.com/gomodule/redigo/redis"
"github.com/nitishm/go-rejson"
"github.com/nitishm/go-rejson/v4"
)

var ctx = context.Background()
Expand Down
4 changes: 2 additions & 2 deletions examples/json_obj/json_obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"log"

"github.com/nitishm/go-rejson"
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4"
"github.com/nitishm/go-rejson/v4/rjs"

goredis "github.com/go-redis/redis/v8"
"github.com/gomodule/redigo/redis"
Expand Down
2 changes: 1 addition & 1 deletion examples/json_set/json_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

goredis "github.com/go-redis/redis/v8"
"github.com/gomodule/redigo/redis"
"github.com/nitishm/go-rejson"
"github.com/nitishm/go-rejson/v4"
)

var ctx = context.Background()
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/nitishm/go-rejson
module github.com/nitishm/go-rejson/v4

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion rejson.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package rejson

import (
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/rjs"
)

type Handler struct {
Expand Down
2 changes: 1 addition & 1 deletion rejson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/rjs"

goredis "github.com/go-redis/redis/v8"
redigo "github.com/gomodule/redigo/redis"
Expand Down
4 changes: 2 additions & 2 deletions set_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
goredis "github.com/go-redis/redis/v8"
redigo "github.com/gomodule/redigo/redis"
"github.com/nitishm/go-rejson/clients"
"github.com/nitishm/go-rejson/rjs"
"github.com/nitishm/go-rejson/v4/clients"
"github.com/nitishm/go-rejson/v4/rjs"
)

// RedisClient provides interface for Client handling in the ReJSON Handler
Expand Down

0 comments on commit 85dc0dc

Please sign in to comment.