module path: github.com/hanzoai/kv-go -> github.com/hanzokv/go

KV lives in its own org now, like hanzokms / hanzos3 / hanzo-ds. The repo moved
hanzoai/kv-go -> hanzokv/go, so the module path follows: a Go module path must
match where the repo actually is, or the proxy cannot resolve it.

The name is `go`, not `kv-go`, following the hanzo-ds convention — that org
holds go, mock, native, sqlbuilder, sqlparser, each named for its language or
concern with the ORG supplying the product noun. Repeating "kv" inside a repo
that already lives under hanzokv is the compound-word habit we are dropping.

349 occurrences across 188 files: the root module, all four extra/* modules,
every example module, imports throughout the tree, and the docs. Builds clean.

The package is still `package redis` and the extra dirs are still named
redis*. That rename is deliberately NOT bundled here: it is 5,771 occurrences,
it breaks all 11 consumers at once, and a large share are WIRE CONTRACTS rather
than branding — the redis:// scheme parser, the "redis: nil" error string, RESP
command names. Renaming those breaks protocol compatibility with the Valkey
server. It needs the same our-vocabulary-vs-the-wire split the argo sweep used,
as its own change.

GitHub keeps the old path redirecting, and versions already published under
github.com/hanzoai/kv-go/v9 stay resolvable, so nothing breaks the moment this
lands. Consumers move on their own schedule.
This commit is contained in:
2026-07-25 23:43:06 -07:00
parent c1d2bc5313
commit 2016e30150
188 changed files with 349 additions and 349 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# LLM.md - Hanzo Kv Go
## Overview
Go module: github.com/hanzoai/kv-go/v9
Go module: github.com/hanzokv/go/v9
## Tech Stack
- **Language**: Go
+1 -1
View File
@@ -3,7 +3,7 @@ package redis_test
import (
"context"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"net"
"time"
"github.com/hanzoai/kv-go/v9/internal/interfaces"
"github.com/hanzoai/kv-go/v9/push"
"github.com/hanzokv/go/v9/internal/interfaces"
"github.com/hanzokv/go/v9/push"
)
// ErrInvalidCommand is returned when an invalid command is passed to ExecuteCommand.
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/hanzoai/kv-go/v9/internal/pool"
"github.com/hanzoai/kv-go/v9/logging"
"github.com/hanzoai/kv-go/v9/maintnotifications"
"github.com/hanzokv/go/v9/internal/pool"
"github.com/hanzokv/go/v9/logging"
"github.com/hanzokv/go/v9/maintnotifications"
)
// mockNetConn implements net.Conn for testing
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func benchmarkRedisClient(ctx context.Context, poolSize int) *redis.Client {
+1 -1
View File
@@ -3,7 +3,7 @@ package redis_test
import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type bitCountExpected struct {
+5 -5
View File
@@ -12,11 +12,11 @@ import (
"sync"
"time"
"github.com/hanzoai/kv-go/v9/internal"
"github.com/hanzoai/kv-go/v9/internal/hscan"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzoai/kv-go/v9/internal/routing"
"github.com/hanzoai/kv-go/v9/internal/util"
"github.com/hanzokv/go/v9/internal"
"github.com/hanzokv/go/v9/internal/hscan"
"github.com/hanzokv/go/v9/internal/proto"
"github.com/hanzokv/go/v9/internal/routing"
"github.com/hanzokv/go/v9/internal/util"
)
// keylessCommands contains Redis commands that have empty key specifications (9th slot empty)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzokv/go/v9/internal/proto"
)
func TestDigestCmd(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"strings"
"github.com/hanzoai/kv-go/v9/internal/routing"
"github.com/hanzokv/go/v9/internal/routing"
)
type (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"strings"
"sync"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// commandRecorder records the last N commands executed by a Redis client.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"strings"
"time"
"github.com/hanzoai/kv-go/v9/internal"
"github.com/hanzokv/go/v9/internal"
)
// KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0,
+3 -3
View File
@@ -11,9 +11,9 @@ import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzoai/kv-go/v9/internal/routing"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/internal/proto"
"github.com/hanzokv/go/v9/internal/routing"
)
type TimeValue struct {
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/helper"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/helper"
)
func init() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"math"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// STEP_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_LPush_and_lrange() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_query_agg() {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"slices"
"strings"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_query_em() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_query_ft() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_query_geo() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_query_range() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func ExampleClient_Set_and_get() {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"math"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"sort"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HIDE_END
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"net"
"strings"
"github.com/hanzoai/kv-go/v9/internal"
"github.com/hanzoai/kv-go/v9/internal/pool"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzokv/go/v9/internal"
"github.com/hanzokv/go/v9/internal/pool"
"github.com/hanzokv/go/v9/internal/proto"
)
// ErrClosed performs any operation on the closed client will return this error.
+2 -2
View File
@@ -6,8 +6,8 @@ import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/internal/proto"
)
type testTimeout struct {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"strings"
"testing"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/internal/proto"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/internal/proto"
)
// TestTypedErrorsWithHookWrapping demonstrates that typed errors work correctly
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/cluster-mget
module github.com/hanzokv/go/example/cluster-mget
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.16.0
require github.com/hanzokv/go/v9 v9.16.0
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func main() {
+3 -3
View File
@@ -1,11 +1,11 @@
module github.com/hanzoai/kv-go/example/del-keys-without-ttl
module github.com/hanzokv/go/example/del-keys-without-ttl
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require (
github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
github.com/hanzokv/go/v9 v9.18.0-beta.2
go.uber.org/zap v1.24.0
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"go.uber.org/zap"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func main() {
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/digest-optimistic-locking
module github.com/hanzokv/go/example/digest-optimistic-locking
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
require github.com/hanzokv/go/v9 v9.18.0-beta.2
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/helper"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/helper"
)
func main() {
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/disable-maintnotifications
module github.com/hanzokv/go/example/disable-maintnotifications
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.7.0
require github.com/hanzokv/go/v9 v9.7.0
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+3 -3
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/maintnotifications"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/maintnotifications"
)
func main() {
@@ -140,5 +140,5 @@ func main() {
fmt.Println(" - You want to minimize client-side overhead")
fmt.Println(" - The Redis server doesn't support CLIENT MAINT_NOTIFICATIONS")
fmt.Printf("\nFor more information, see:\n")
fmt.Println(" https://github.com/hanzoai/kv-go/tree/master/maintnotifications")
fmt.Println(" https://github.com/hanzokv/go/tree/master/maintnotifications")
}
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/hll
module github.com/hanzokv/go/example/hll
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
require github.com/hanzokv/go/v9 v9.18.0-beta.2
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func main() {
+3 -3
View File
@@ -1,12 +1,12 @@
module github.com/hanzoai/kv-go/example/scan-struct
module github.com/hanzokv/go/example/scan-struct
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require (
github.com/davecgh/go-spew v1.1.1
github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
github.com/hanzokv/go/v9 v9.18.0-beta.2
)
require (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type Model struct {
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/lua-scripting
module github.com/hanzokv/go/example/lua-scripting
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
require github.com/hanzokv/go/v9 v9.18.0-beta.2
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func main() {
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/pubsub
module github.com/hanzokv/go/example/pubsub
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.11.0
require github.com/hanzokv/go/v9 v9.11.0
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"sync/atomic"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzoai/kv-go/v9/logging"
"github.com/hanzoai/kv-go/v9/maintnotifications"
"github.com/hanzokv/go/v9"
"github.com/hanzokv/go/v9/logging"
"github.com/hanzokv/go/v9/maintnotifications"
)
var ctx = context.Background()
+3 -3
View File
@@ -12,11 +12,11 @@ import (
"github.com/uptrace/uptrace-go/uptrace"
"github.com/hanzoai/kv-go/extra/redisotel/v9"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/extra/redisotel/v9"
"github.com/hanzokv/go/v9"
)
var tracer = otel.Tracer("github.com/hanzoai/kv-go/example/otel")
var tracer = otel.Tracer("github.com/hanzokv/go/example/otel")
func main() {
ctx := context.Background()
+7 -7
View File
@@ -1,18 +1,18 @@
module github.com/hanzoai/kv-go/example/otel
module github.com/hanzokv/go/example/otel
go 1.26
toolchain go1.24.1
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
replace github.com/hanzoai/kv-go/extra/redisotel/v9 => ../../extra/redisotel
replace github.com/hanzokv/go/extra/redisotel/v9 => ../../extra/redisotel
replace github.com/hanzoai/kv-go/extra/rediscmd/v9 => ../../extra/rediscmd
replace github.com/hanzokv/go/extra/rediscmd/v9 => ../../extra/rediscmd
require (
github.com/hanzoai/kv-go/extra/redisotel/v9 v9.18.0-beta.2
github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
github.com/hanzokv/go/extra/redisotel/v9 v9.18.0-beta.2
github.com/hanzokv/go/v9 v9.18.0-beta.2
github.com/uptrace/uptrace-go v1.21.0
go.opentelemetry.io/otel v1.22.0
)
@@ -25,7 +25,7 @@ require (
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
github.com/hanzoai/kv-go/extra/rediscmd/v9 v9.18.0-beta.2 // indirect
github.com/hanzokv/go/extra/rediscmd/v9 v9.18.0-beta.2 // indirect
go.opentelemetry.io/contrib/instrumentation/runtime v0.46.1 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
+3 -3
View File
@@ -1,10 +1,10 @@
module github.com/hanzoai/kv-go/example/redis-bloom
module github.com/hanzokv/go/example/redis-bloom
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
require github.com/hanzokv/go/v9 v9.18.0-beta.2
require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"math/rand"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func main() {
+3 -3
View File
@@ -1,12 +1,12 @@
module github.com/hanzoai/kv-go/example/scan-struct
module github.com/hanzokv/go/example/scan-struct
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require (
github.com/davecgh/go-spew v1.1.1
github.com/hanzoai/kv-go/v9 v9.18.0-beta.2
github.com/hanzokv/go/v9 v9.18.0-beta.2
)
require (
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type Model struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"net"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type redisHook struct{}
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sync"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
var (
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"net"
"strings"
"github.com/hanzoai/kv-go/v9/internal"
"github.com/hanzoai/kv-go/v9/internal/hashtag"
"github.com/hanzoai/kv-go/v9/internal/pool"
"github.com/hanzokv/go/v9/internal"
"github.com/hanzokv/go/v9/internal/hashtag"
"github.com/hanzokv/go/v9/internal/pool"
)
func (c *baseClient) Pool() pool.Pooler {
+5 -5
View File
@@ -1,14 +1,14 @@
module github.com/hanzoai/kv-go/extra/rediscensus/v9
module github.com/hanzokv/go/extra/rediscensus/v9
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
replace github.com/hanzoai/kv-go/extra/rediscmd/v9 => ../rediscmd
replace github.com/hanzokv/go/extra/rediscmd/v9 => ../rediscmd
require (
github.com/hanzoai/kv-go/extra/rediscmd/v9 v9.21.0
github.com/hanzoai/kv-go/v9 v9.21.0
github.com/hanzokv/go/extra/rediscmd/v9 v9.21.0
github.com/hanzokv/go/v9 v9.21.0
go.opencensus.io v0.24.0
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"go.opencensus.io/trace"
"github.com/hanzoai/kv-go/extra/rediscmd/v9"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/extra/rediscmd/v9"
"github.com/hanzokv/go/v9"
)
type TracingHook struct{}
+3 -3
View File
@@ -1,13 +1,13 @@
module github.com/hanzoai/kv-go/extra/rediscmd/v9
module github.com/hanzokv/go/extra/rediscmd/v9
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require (
github.com/bsm/ginkgo/v2 v2.12.0
github.com/bsm/gomega v1.27.10
github.com/hanzoai/kv-go/v9 v9.21.0
github.com/hanzokv/go/v9 v9.21.0
)
require (
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
func CmdString(cmd redis.Cmder) string {
+1 -1
View File
@@ -3,7 +3,7 @@ package redisotel
import (
"strings"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
+5 -5
View File
@@ -1,14 +1,14 @@
module github.com/hanzoai/kv-go/extra/redisotel/v9
module github.com/hanzokv/go/extra/redisotel/v9
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
replace github.com/hanzoai/kv-go/extra/rediscmd/v9 => ../rediscmd
replace github.com/hanzokv/go/extra/rediscmd/v9 => ../rediscmd
require (
github.com/hanzoai/kv-go/extra/rediscmd/v9 v9.21.0
github.com/hanzoai/kv-go/v9 v9.21.0
github.com/hanzokv/go/extra/rediscmd/v9 v9.21.0
github.com/hanzokv/go/v9 v9.21.0
go.opentelemetry.io/otel v1.22.0
go.opentelemetry.io/otel/metric v1.22.0
go.opentelemetry.io/otel/sdk v1.22.0
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/metric"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type metricsState struct {
+5 -5
View File
@@ -13,12 +13,12 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.24.0"
"go.opentelemetry.io/otel/trace"
"github.com/hanzoai/kv-go/extra/rediscmd/v9"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/extra/rediscmd/v9"
"github.com/hanzokv/go/v9"
)
const (
instrumName = "github.com/hanzoai/kv-go/extra/redisotel"
instrumName = "github.com/hanzokv/go/extra/redisotel"
)
func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
@@ -115,7 +115,7 @@ func (th *tracingHook) ProcessHook(hook redis.ProcessHook) redis.ProcessHook {
attrs := make([]attribute.KeyValue, 0, 8)
if th.conf.callerEnabled {
fn, file, line := funcFileLine("github.com/hanzoai/kv-go")
fn, file, line := funcFileLine("github.com/hanzokv/go")
attrs = append(attrs,
semconv.CodeFunction(fn),
semconv.CodeFilepath(file),
@@ -157,7 +157,7 @@ func (th *tracingHook) ProcessPipelineHook(
)
if th.conf.callerEnabled {
fn, file, line := funcFileLine("github.com/hanzoai/kv-go")
fn, file, line := funcFileLine("github.com/hanzokv/go")
attrs = append(attrs,
semconv.CodeFunction(fn),
semconv.CodeFilepath(file),
+1 -1
View File
@@ -16,7 +16,7 @@ import (
sdktrace "go.opentelemetry.io/otel/sdk/trace"
"go.opentelemetry.io/otel/trace"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
type providerFunc func(name string, opts ...trace.TracerOption) trace.TracerProvider
+1 -1
View File
@@ -3,7 +3,7 @@ package redisprometheus
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// StatGetter provides a method to get pool statistics.
+3 -3
View File
@@ -1,12 +1,12 @@
module github.com/hanzoai/kv-go/extra/redisprometheus/v9
module github.com/hanzokv/go/extra/redisprometheus/v9
go 1.26
replace github.com/hanzoai/kv-go/v9 => ../..
replace github.com/hanzokv/go/v9 => ../..
require (
github.com/prometheus/client_golang v1.14.0
github.com/hanzoai/kv-go/v9 v9.21.0
github.com/hanzokv/go/v9 v9.21.0
)
require (
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"context"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
var (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/hanzoai/kv-go/v9/internal/hashtag"
"github.com/hanzokv/go/v9/internal/hashtag"
)
type GenericCmdable interface {
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/hanzoai/kv-go/v9
module github.com/hanzokv/go/v9
go 1.26
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"time"
"github.com/hanzoai/kv-go/v9/internal/hashtag"
"github.com/hanzokv/go/v9/internal/hashtag"
)
type HashCmdable interface {
+1 -1
View File
@@ -1,7 +1,7 @@
package helper
import (
"github.com/hanzoai/kv-go/v9/internal/util"
"github.com/hanzokv/go/v9/internal/util"
"github.com/zeebo/xxh3"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/hanzoai/kv-go/v9"
"github.com/hanzokv/go/v9"
)
// HSET Benchmark Tests
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"strconv"
"time"
"github.com/hanzoai/kv-go/v9/internal/util"
"github.com/hanzokv/go/v9/internal/util"
)
func AppendArg(b []byte, v interface{}) []byte {
@@ -1,8 +1,8 @@
package streaming
import (
"github.com/hanzoai/kv-go/v9/auth"
"github.com/hanzoai/kv-go/v9/internal/pool"
"github.com/hanzokv/go/v9/auth"
"github.com/hanzokv/go/v9/internal/pool"
)
// ConnReAuthCredentialsListener is a credentials listener for a specific connection
+1 -1
View File
@@ -3,7 +3,7 @@ package streaming
import (
"sync"
"github.com/hanzoai/kv-go/v9/auth"
"github.com/hanzokv/go/v9/auth"
)
// CredentialsListeners is a thread-safe collection of credentials listeners
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"errors"
"time"
"github.com/hanzoai/kv-go/v9/auth"
"github.com/hanzoai/kv-go/v9/internal/pool"
"github.com/hanzokv/go/v9/auth"
"github.com/hanzokv/go/v9/internal/pool"
)
// Manager coordinates streaming credentials and re-authentication for a connection pool.

Some files were not shown because too many files have changed in this diff Show More