From 4268ffbe6de17cf38d94cf5b719396903c286dd7 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 25 Oct 2022 18:42:46 +0300 Subject: [PATCH] Pinning code --- README.markdown | 18 +++++++++--------- go.sum | 0 internal/commandinfo.go | 2 +- internal/redistest/testdb.go | 2 +- redis/conn_test.go | 4 ++-- redis/doc.go | 4 ++-- redis/pool.go | 2 +- redis/pool_test.go | 4 ++-- redis/pubsub_test.go | 4 ++-- redis/reply_test.go | 4 ++-- redis/scan_test.go | 3 ++- redis/script_test.go | 4 ++-- redis/zpop_example_test.go | 3 ++- redisx/connmux.go | 4 ++-- redisx/connmux_test.go | 6 +++--- redisx/doc.go | 2 +- 16 files changed, 34 insertions(+), 32 deletions(-) create mode 100644 go.sum diff --git a/README.markdown b/README.markdown index ab42c31..c6c8f96 100644 --- a/README.markdown +++ b/README.markdown @@ -6,25 +6,25 @@ Redigo is a [Go](http://golang.org/) client for the [Redis](http://redis.io/) da Features ------- -* A [Print-like](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands. -* [Pipelining](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Pipelining), including pipelined transactions. -* [Publish/Subscribe](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Publish_and_Subscribe). -* [Connection pooling](http://godoc.org/github.com/garyburd/redigo/redis#Pool). -* [Script helper type](http://godoc.org/github.com/garyburd/redigo/redis#Script) with optimistic use of EVALSHA. -* [Helper functions](http://godoc.org/github.com/garyburd/redigo/redis#hdr-Reply_Helpers) for working with command replies. +* A [Print-like](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Executing_Commands) API with support for all Redis commands. +* [Pipelining](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Pipelining), including pipelined transactions. +* [Publish/Subscribe](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Publish_and_Subscribe). +* [Connection pooling](http://godoc.org/git.bit5.ru/backend/redigo/redis#Pool). +* [Script helper type](http://godoc.org/git.bit5.ru/backend/redigo/redis#Script) with optimistic use of EVALSHA. +* [Helper functions](http://godoc.org/git.bit5.ru/backend/redigo/redis#hdr-Reply_Helpers) for working with command replies. Documentation ------------- -- [API Reference](http://godoc.org/github.com/garyburd/redigo/redis) -- [FAQ](https://github.com/garyburd/redigo/wiki/FAQ) +- [API Reference](http://godoc.org/git.bit5.ru/backend/redigo/redis) +- [FAQ](https://git.bit5.ru/backend/redigo/wiki/FAQ) Installation ------------ Install Redigo using the "go get" command: - go get github.com/garyburd/redigo/redis + go get git.bit5.ru/backend/redigo/redis The Go distribution is Redigo's only dependency. diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/internal/commandinfo.go b/internal/commandinfo.go index 7ad1ade..72a51f3 100644 --- a/internal/commandinfo.go +++ b/internal/commandinfo.go @@ -12,7 +12,7 @@ // License for the specific language governing permissions and limitations // under the License. -package internal // import "github.com/garyburd/redigo/internal" +package internal // import "git.bit5.ru/backend/redigo/internal" import ( "strings" diff --git a/internal/redistest/testdb.go b/internal/redistest/testdb.go index 5f955c4..ec32e87 100644 --- a/internal/redistest/testdb.go +++ b/internal/redistest/testdb.go @@ -19,7 +19,7 @@ import ( "errors" "time" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/redis" ) type testConn struct { diff --git a/redis/conn_test.go b/redis/conn_test.go index 8003701..6aee5e1 100644 --- a/redis/conn_test.go +++ b/redis/conn_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" ) var writeTests = []struct { diff --git a/redis/doc.go b/redis/doc.go index a5cd454..07e206c 100644 --- a/redis/doc.go +++ b/redis/doc.go @@ -14,7 +14,7 @@ // Package redis is a client for the Redis database. // -// The Redigo FAQ (https://github.com/garyburd/redigo/wiki/FAQ) contains more +// The Redigo FAQ (https://git.bit5.ru/backend/redigo/wiki/FAQ) contains more // documentation about this package. // // Connections @@ -166,4 +166,4 @@ // if _, err := redis.Scan(reply, &value1, &value2); err != nil { // // handle error // } -package redis // import "github.com/garyburd/redigo/redis" +package redis // import "git.bit5.ru/backend/redigo/redis" diff --git a/redis/pool.go b/redis/pool.go index f4293d7..aaeac26 100644 --- a/redis/pool.go +++ b/redis/pool.go @@ -25,7 +25,7 @@ import ( "sync" "time" - "github.com/garyburd/redigo/internal" + "git.bit5.ru/backend/redigo/internal" ) var nowFunc = time.Now // for testing diff --git a/redis/pool_test.go b/redis/pool_test.go index 1fe305f..f8b6d34 100644 --- a/redis/pool_test.go +++ b/redis/pool_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" ) type poolTestConn struct { diff --git a/redis/pubsub_test.go b/redis/pubsub_test.go index 707f5a4..9f35109 100644 --- a/redis/pubsub_test.go +++ b/redis/pubsub_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" ) func publish(channel, value interface{}) { diff --git a/redis/reply_test.go b/redis/reply_test.go index 92744c5..2fe3966 100644 --- a/redis/reply_test.go +++ b/redis/reply_test.go @@ -19,8 +19,8 @@ import ( "reflect" "testing" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" ) type valueError struct { diff --git a/redis/scan_test.go b/redis/scan_test.go index b57dd89..9ef0dac 100644 --- a/redis/scan_test.go +++ b/redis/scan_test.go @@ -16,10 +16,11 @@ package redis_test import ( "fmt" - "github.com/garyburd/redigo/redis" "math" "reflect" "testing" + + "git.bit5.ru/backend/redigo/redis" ) var scanConversionTests = []struct { diff --git a/redis/script_test.go b/redis/script_test.go index c9635bf..22a412c 100644 --- a/redis/script_test.go +++ b/redis/script_test.go @@ -20,8 +20,8 @@ import ( "testing" "time" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" ) func ExampleScript(c redis.Conn, reply interface{}, err error) { diff --git a/redis/zpop_example_test.go b/redis/zpop_example_test.go index 1d86ee6..cc3e590 100644 --- a/redis/zpop_example_test.go +++ b/redis/zpop_example_test.go @@ -16,7 +16,8 @@ package redis_test import ( "fmt" - "github.com/garyburd/redigo/redis" + + "git.bit5.ru/backend/redigo/redis" ) // zpop pops a value from the ZSET key using WATCH/MULTI/EXEC commands. diff --git a/redisx/connmux.go b/redisx/connmux.go index af2cced..de4a38a 100644 --- a/redisx/connmux.go +++ b/redisx/connmux.go @@ -18,8 +18,8 @@ import ( "errors" "sync" - "github.com/garyburd/redigo/internal" - "github.com/garyburd/redigo/redis" + "git.bit5.ru/backend/redigo/internal" + "git.bit5.ru/backend/redigo/redis" ) // ConnMux multiplexes one or more connections to a single underlying diff --git a/redisx/connmux_test.go b/redisx/connmux_test.go index 9c3c8b1..1372ee4 100644 --- a/redisx/connmux_test.go +++ b/redisx/connmux_test.go @@ -19,9 +19,9 @@ import ( "sync" "testing" - "github.com/garyburd/redigo/internal/redistest" - "github.com/garyburd/redigo/redis" - "github.com/garyburd/redigo/redisx" + "git.bit5.ru/backend/redigo/internal/redistest" + "git.bit5.ru/backend/redigo/redis" + "git.bit5.ru/backend/redigo/redisx" ) func TestConnMux(t *testing.T) { diff --git a/redisx/doc.go b/redisx/doc.go index 91653db..3c3835c 100644 --- a/redisx/doc.go +++ b/redisx/doc.go @@ -14,4 +14,4 @@ // Package redisx contains experimental features for Redigo. Features in this // package may be modified or deleted at any time. -package redisx // import "github.com/garyburd/redigo/redisx" +package redisx // import "git.bit5.ru/backend/redigo/redisx"