From 85dc0dc9cde378b0d8e475c7cfbf9998e20472ea Mon Sep 17 00:00:00 2001 From: Shivam Rathore Date: Sat, 26 Dec 2020 23:25:01 +0530 Subject: [PATCH] v4 release with context support --- README.md | 5 +++-- clients/goredis.go | 2 +- clients/redigo.go | 2 +- context.go | 4 ++-- doc.go | 5 ++--- examples/json_array/json_array.go | 4 ++-- examples/json_obj/json_obj.go | 4 ++-- examples/json_set/json_set.go | 2 +- go.mod | 2 +- rejson.go | 2 +- rejson_test.go | 2 +- set_client.go | 4 ++-- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 165b0ed..b5609d6 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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" ) diff --git a/clients/goredis.go b/clients/goredis.go index f7cfb63..c98821c 100644 --- a/clients/goredis.go +++ b/clients/goredis.go @@ -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 diff --git a/clients/redigo.go b/clients/redigo.go index a2fd91a..817bdc1 100644 --- a/clients/redigo.go +++ b/clients/redigo.go @@ -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" ) diff --git a/context.go b/context.go index 8007f40..d58c4c8 100644 --- a/context.go +++ b/context.go @@ -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 diff --git a/doc.go b/doc.go index 5615b08..a34a6c8 100644 --- a/doc.go +++ b/doc.go @@ -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 diff --git a/examples/json_array/json_array.go b/examples/json_array/json_array.go index 6a03b81..b855361 100644 --- a/examples/json_array/json_array.go +++ b/examples/json_array/json_array.go @@ -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() diff --git a/examples/json_obj/json_obj.go b/examples/json_obj/json_obj.go index 6d76c29..3c86b3a 100644 --- a/examples/json_obj/json_obj.go +++ b/examples/json_obj/json_obj.go @@ -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" diff --git a/examples/json_set/json_set.go b/examples/json_set/json_set.go index a81729e..95e2d23 100644 --- a/examples/json_set/json_set.go +++ b/examples/json_set/json_set.go @@ -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() diff --git a/go.mod b/go.mod index 41e7194..93d8dff 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nitishm/go-rejson +module github.com/nitishm/go-rejson/v4 go 1.14 diff --git a/rejson.go b/rejson.go index 70e5ef8..b45710e 100644 --- a/rejson.go +++ b/rejson.go @@ -1,7 +1,7 @@ package rejson import ( - "github.com/nitishm/go-rejson/rjs" + "github.com/nitishm/go-rejson/v4/rjs" ) type Handler struct { diff --git a/rejson_test.go b/rejson_test.go index 06c4ffa..a5e4c7b 100644 --- a/rejson_test.go +++ b/rejson_test.go @@ -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" diff --git a/set_client.go b/set_client.go index 2f04962..e382bc7 100644 --- a/set_client.go +++ b/set_client.go @@ -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