Skip to content

Commit

Permalink
fix api package reference
Browse files Browse the repository at this point in the history
Signed-off-by: jbrinkman <[email protected]>
  • Loading branch information
jbrinkman committed Feb 10, 2025
1 parent 55a2250 commit a82f079
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go/api/bitmap_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package api
import (
"fmt"

"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_SetBit() {
Expand Down
17 changes: 17 additions & 0 deletions go/api/example_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,20 @@ func getExampleGlideClient() *GlideClient {

return client.(*GlideClient)
}

func getExampleGlideClusterClient() *GlideClusterClient {
config := NewGlideClusterClientConfiguration().
WithAddress(new(NodeAddress)) // use default address

client, err := NewGlideClusterClient(config)
if err != nil {
fmt.Println("error connecting to database: ", err)
}

_, err = client.CustomCommand([]string{"FLUSHALL"}) // todo: replace with client.FlushAll() when implemented
if err != nil {
fmt.Println("error flushing database: ", err)
}

return client.(*GlideClusterClient)
}
2 changes: 1 addition & 1 deletion go/api/generic_base_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_Del() {
Expand Down
2 changes: 1 addition & 1 deletion go/api/hash_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package api
import (
"fmt"

"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_HGet() {
Expand Down
2 changes: 1 addition & 1 deletion go/api/set_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package api
import (
"fmt"

"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_SAdd() {
Expand Down
2 changes: 1 addition & 1 deletion go/api/sorted_set_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/json"
"fmt"

"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_ZAdd() {
Expand Down
2 changes: 1 addition & 1 deletion go/api/stream_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/google/uuid"
"github.com/valkey-io/valkey-glide/go/glide/api/options"
"github.com/valkey-io/valkey-glide/go/api/options"
)

func ExampleGlideClient_XAdd() {
Expand Down
2 changes: 1 addition & 1 deletion go/benchmarks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strconv"
"strings"

"github.com/valkey-io/valkey-glide/go/glide/api"
"github.com/valkey-io/valkey-glide/go/api"
)

type options struct {
Expand Down
2 changes: 1 addition & 1 deletion go/integTest/request_routing_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/valkey-io/valkey-glide/go/glide/api"
"github.com/valkey-io/valkey-glide/go/api"
"github.com/valkey-io/valkey-glide/go/api/config"
"github.com/valkey-io/valkey-glide/go/protobuf"
)
Expand Down

0 comments on commit a82f079

Please sign in to comment.