Skip to content

Commit 249e9ba

Browse files
authored
Migrate go mod and badges
We are migrating the repository from https://github.com/KaymeKaydex/go-vshard-router, which requires migrating badges and go.mod
2 parents 84f7c54 + 42f3637 commit 249e9ba

30 files changed

+58
-58
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
<img align="right" width="159px" src="docs/static/logo.png" alt="логотип go vshard router">
44

5-
[![Go Reference](https://pkg.go.dev/badge/github.com/KaymeKaydex/go-vshard-router.svg)](https://pkg.go.dev/github.com/KaymeKaydex/go-vshard-router)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/tarantool/go-vshard-router.svg)](https://pkg.go.dev/github.com/tarantool/go-vshard-router)
66
[![Actions Status][actions-badge]][actions-url]
7-
[![Go Report Card](https://goreportcard.com/badge/github.com/KaymeKaydex/go-vshard-router)](https://goreportcard.com/report/github.com/KaymeKaydex/go-vshard-router)
7+
[![Go Report Card](https://goreportcard.com/badge/github.com/tarantool/go-vshard-router)](https://goreportcard.com/report/github.com/tarantool/go-vshard-router)
88
[![codecov](https://codecov.io/gh/KaymeKaydex/go-vshard-router/graph/badge.svg?token=WLRWE97IT1)](https://codecov.io/gh/KaymeKaydex/go-vshard-router)
99
[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/KaymeKaydex/go-vshard-router/master/LICENSE)
1010

1111
Translations:
12-
- [Русский](https://github.com/KaymeKaydex/go-vshard-router/blob/main/README_ru.md)
12+
- [Русский](https://github.com/tarantool/go-vshard-router/blob/main/README_ru.md)
1313

1414

1515
go-vshard-router is a library for sending requests to a sharded tarantool cluster directly,
@@ -71,14 +71,14 @@ graph TD
7171
With [Go module](https://github.com/golang/go/wiki/Modules) support, simply add the following import
7272

7373
```
74-
import "github.com/KaymeKaydex/go-vshard-router"
74+
import "github.com/tarantool/go-vshard-router"
7575
```
7676
to your code, and then `go [build|run|test]` will automatically fetch the necessary dependencies.
7777

7878
Otherwise, run the following Go command to install the `go-vshard-router` package:
7979

8080
```sh
81-
$ go get -u github.com/KaymeKaydex/go-vshard-router
81+
$ go get -u github.com/tarantool/go-vshard-router
8282
```
8383

8484
### Running Go-Vshard-Router
@@ -94,8 +94,8 @@ import (
9494
"strconv"
9595
"time"
9696

97-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
98-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
97+
vshardrouter "github.com/tarantool/go-vshard-router"
98+
"github.com/tarantool/go-vshard-router/providers/static"
9999

100100
"github.com/google/uuid"
101101
"github.com/tarantool/go-tarantool/v2"
@@ -215,5 +215,5 @@ at a load close to production
215215
![Image alt](docs/static/not-direct.png)
216216

217217

218-
[actions-badge]: https://github.com/KaymeKaydex/go-vshard-router/actions/workflows/main.yml/badge.svg
219-
[actions-url]: https://github.com/KaymeKaydex/go-vshard-router/actions/workflows/main.yml
218+
[actions-badge]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml/badge.svg
219+
[actions-url]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml

README_ru.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
<img align="right" width="159px" src="docs/static/logo.png" alt="go vshard router logo">
44

5-
[![Go Reference](https://pkg.go.dev/badge/github.com/KaymeKaydex/go-vshard-router.svg)](https://pkg.go.dev/github.com/KaymeKaydex/go-vshard-router)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/tarantool/go-vshard-router.svg)](https://pkg.go.dev/github.com/tarantool/go-vshard-router)
66
[![Actions Status][actions-badge]][actions-url]
7-
[![Go Report Card](https://goreportcard.com/badge/github.com/KaymeKaydex/go-vshard-router)](https://goreportcard.com/report/github.com/KaymeKaydex/go-vshard-router)
7+
[![Go Report Card](https://goreportcard.com/badge/github.com/tarantool/go-vshard-router)](https://goreportcard.com/report/github.com/tarantool/go-vshard-router)
88
[![codecov](https://codecov.io/gh/KaymeKaydex/go-vshard-router/graph/badge.svg?token=WLRWE97IT1)](https://codecov.io/gh/KaymeKaydex/go-vshard-router)
99

1010
Translations:
11-
- [English](https://github.com/KaymeKaydex/go-vshard-router/blob/main/README.md)
11+
- [English](https://github.com/tarantool/go-vshard-router/blob/main/README.md)
1212

1313
go-vshard-router — библиотека для отправки запросов напрямую в стораджа в шардированный кластер tarantool,
1414
без использования tarantool-router. Эта библиотека написана на основе [модуля библиотеки tarantool vhsard router](https://github.com/tarantool/vshard/blob/master/vshard/router/init.lua). go-vshard-router применяет новый подход к созданию кластера
@@ -70,14 +70,14 @@ graph TD
7070
С помощью [Go module](https://github.com/golang/go/wiki/Modules) можно добавить следующий импорт
7171

7272
```
73-
import "github.com/KaymeKaydex/go-vshard-router"
73+
import "github.com/tarantool/go-vshard-router"
7474
```
7575
в ваш код, а затем `go [build|run|test]` автоматически получит необходимые зависимости.
7676

7777

7878
В противном случае выполните следующую команду Go, чтобы установить пакет go-vshard-router:
7979
```sh
80-
$ go get -u github.com/KaymeKaydex/go-vshard-router
80+
$ go get -u github.com/tarantool/go-vshard-router
8181
```
8282

8383
### Использование Go-Vshard-Router
@@ -93,8 +93,8 @@ import (
9393
"strconv"
9494
"time"
9595

96-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
97-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
96+
vshardrouter "github.com/tarantool/go-vshard-router"
97+
"github.com/tarantool/go-vshard-router/providers/static"
9898

9999
"github.com/google/uuid"
100100
"github.com/tarantool/go-tarantool/v2"
@@ -216,5 +216,5 @@ func main() {
216216
![Image alt](docs/static/not-direct.png)
217217

218218

219-
[actions-badge]: https://github.com/KaymeKaydex/go-vshard-router/actions/workflows/main.yml/badge.svg
220-
[actions-url]: https://github.com/KaymeKaydex/go-vshard-router/actions/workflows/main.yml
219+
[actions-badge]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml/badge.svg
220+
[actions-url]: https://github.com/tarantool/go-vshard-router/actions/workflows/main.yml

api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (r VshardRouterCallResp) GetTyped(result []interface{}) error {
231231
// RouterCallImpl Perform shard operation function will restart operation
232232
// after wrong bucket response until timeout is reached
233233
// Deprecated: RouterCallImpl is deprecated.
234-
// See https://github.com/KaymeKaydex/go-vshard-router/issues/110.
234+
// See https://github.com/tarantool/go-vshard-router/issues/110.
235235
// Use Call method with RO, RW, RE, BRO, BRE modes instead.
236236
func (r *Router) RouterCallImpl(ctx context.Context,
237237
bucketID uint64,

api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"testing"
88
"time"
99

10-
mockpool "github.com/KaymeKaydex/go-vshard-router/mocks/pool"
1110
"github.com/stretchr/testify/mock"
1211
"github.com/stretchr/testify/require"
1312
"github.com/tarantool/go-tarantool/v2"
13+
mockpool "github.com/tarantool/go-vshard-router/mocks/pool"
1414
)
1515

1616
var emptyRouter = &Router{

examples/customer/go-service/go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module customer
33
go 1.22.2
44

55
require (
6-
github.com/KaymeKaydex/go-vshard-router v0.0.9
6+
github.com/tarantool/go-vshard-router v0.0.9
77
github.com/google/uuid v1.6.0
88
github.com/spf13/viper v1.18.2
99
github.com/swaggo/swag v1.16.3
@@ -49,4 +49,4 @@ require (
4949
gopkg.in/yaml.v3 v3.0.1 // indirect
5050
)
5151

52-
replace github.com/KaymeKaydex/go-vshard-router v0.0.9 => ../../../
52+
replace github.com/tarantool/go-vshard-router v0.0.9 => ../../../

examples/customer/go-service/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/tarantool/go-tarantool/v2"
1616
"github.com/tarantool/go-tarantool/v2/pool"
1717

18-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
19-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
18+
vshardrouter "github.com/tarantool/go-vshard-router"
19+
"github.com/tarantool/go-vshard-router/providers/static"
2020
)
2121

2222
// @title Example customer service Swagger API

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/KaymeKaydex/go-vshard-router
1+
module github.com/tarantool/go-vshard-router
22

33
go 1.20
44

mocks/topology/topology_controller.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/etcd/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"path/filepath"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
98
"github.com/google/uuid"
9+
vshardrouter "github.com/tarantool/go-vshard-router"
1010
"go.etcd.io/etcd/client/v2"
1111
)
1212

providers/etcd/provider_integration_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package etcd
55

66
import (
77
"fmt"
8-
mocktopology "github.com/KaymeKaydex/go-vshard-router/mocks/topology"
8+
mocktopology "github.com/tarantool/go-vshard-router/mocks/topology"
99
"go.etcd.io/etcd/client/v2"
1010
"testing"
1111
"time"

providers/static/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/google/uuid"
88

9-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9+
vshardrouter "github.com/tarantool/go-vshard-router"
1010
)
1111

1212
// Check that provider implements TopologyProvider interface

providers/static/provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/google/uuid"
88
"github.com/stretchr/testify/require"
99

10-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
10+
vshardrouter "github.com/tarantool/go-vshard-router"
1111
)
1212

1313
func TestNewProvider(t *testing.T) {

providers/viper/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/google/uuid"
1010
srcviper "github.com/spf13/viper"
1111

12-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
12+
vshardrouter "github.com/tarantool/go-vshard-router"
1313
)
1414

1515
// Check that provider implements TopologyProvider interface

providers/viper/provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/spf13/viper"
77
"github.com/stretchr/testify/require"
88

9-
vprovider "github.com/KaymeKaydex/go-vshard-router/providers/viper"
9+
vprovider "github.com/tarantool/go-vshard-router/providers/viper"
1010
)
1111

1212
func TestProvider_Close(t *testing.T) {

providers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/require"
99

10-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
10+
vshardrouter "github.com/tarantool/go-vshard-router"
1111
)
1212

1313
var (

replicaset.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func bucketStatWait(future *tarantool.Future) (BucketStatInfo, error) {
123123
// link https://github.com/tarantool/vshard/blob/99ceaee014ea3a67424c2026545838e08d69b90c/vshard/replicaset.lua#L661
124124
// Deprecated: ReplicaCall is deprecated,
125125
// because looks like it has a little bit broken interface.
126-
// See https://github.com/KaymeKaydex/go-vshard-router/issues/42.
126+
// See https://github.com/tarantool/go-vshard-router/issues/42.
127127
// Use CallAsync instead.
128128
func (rs *Replicaset) ReplicaCall(
129129
ctx context.Context,

replicaset_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/tarantool/go-tarantool/v2"
1313
"github.com/vmihailenco/msgpack/v5"
1414

15-
mockpool "github.com/KaymeKaydex/go-vshard-router/mocks/pool"
15+
mockpool "github.com/tarantool/go-vshard-router/mocks/pool"
1616
)
1717

1818
func TestReplicasetInfo_String(t *testing.T) {

tarantool_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import (
77
"testing"
88
"time"
99

10-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
11-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
12-
chelper "github.com/KaymeKaydex/go-vshard-router/test_helper"
1310
"github.com/google/uuid"
1411
"github.com/stretchr/testify/require"
1512
"github.com/tarantool/go-tarantool/v2"
1613
"github.com/tarantool/go-tarantool/v2/pool"
1714
"github.com/tarantool/go-tarantool/v2/test_helpers"
15+
vshardrouter "github.com/tarantool/go-vshard-router"
16+
"github.com/tarantool/go-vshard-router/providers/static"
17+
chelper "github.com/tarantool/go-vshard-router/test_helper"
1818
)
1919

2020
const instancesCount = 4

tests/tnt/call_bench_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"testing"
66
"time"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
108
"github.com/google/uuid"
119
"github.com/stretchr/testify/require"
1210
"github.com/tarantool/go-tarantool/v2"
1311
"github.com/tarantool/go-tarantool/v2/pool"
12+
vshardrouter "github.com/tarantool/go-vshard-router"
13+
"github.com/tarantool/go-vshard-router/providers/static"
1414
)
1515

1616
type Product struct {

tests/tnt/cfgmaker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package tnt
33
import (
44
"fmt"
55

6-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
76
"github.com/google/uuid"
7+
vshardrouter "github.com/tarantool/go-vshard-router"
88
)
99

1010
type cfgmaker struct {

tests/tnt/concurrent_topology_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"testing"
99
"time"
1010

11-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
1211
"github.com/stretchr/testify/require"
12+
vshardrouter "github.com/tarantool/go-vshard-router"
1313
)
1414

1515
type concurrentTopologyProvider struct {
@@ -35,7 +35,7 @@ func (c *concurrentTopologyProvider) Init(tc vshardrouter.TopologyController) er
3535
defer close(c.closed)
3636
//nolint:errcheck
3737
defer tc.AddReplicasets(ctx, removed)
38-
// Hack until issue will be resolved: https://github.com/KaymeKaydex/go-vshard-router/issues/65
38+
// Hack until issue will be resolved: https://github.com/tarantool/go-vshard-router/issues/65
3939
// A little pause to let finish NewRouter() with no err
4040
time.Sleep(2 * time.Second)
4141

tests/tnt/discovery_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"testing"
66
"time"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
108
"github.com/stretchr/testify/require"
9+
vshardrouter "github.com/tarantool/go-vshard-router"
10+
"github.com/tarantool/go-vshard-router/providers/static"
1111
)
1212

1313
func TestBucketDiscovery(t *testing.T) {

tests/tnt/replicaset_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import (
55
"testing"
66
"time"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
108
"github.com/stretchr/testify/require"
119
"github.com/tarantool/go-tarantool/v2"
1210
"github.com/tarantool/go-tarantool/v2/pool"
11+
vshardrouter "github.com/tarantool/go-vshard-router"
12+
"github.com/tarantool/go-vshard-router/providers/static"
1313
)
1414

1515
func TestReplicasetReplicaCall(t *testing.T) {

tests/tnt/router_call_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"testing"
66
"time"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
108
"github.com/stretchr/testify/require"
119
"github.com/tarantool/go-tarantool/v2/pool"
10+
vshardrouter "github.com/tarantool/go-vshard-router"
11+
"github.com/tarantool/go-vshard-router/providers/static"
1212
)
1313

1414
func TestRouterCallProto(t *testing.T) {

tests/tnt/routermap_call_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"testing"
66
"time"
77

8-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
9-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
108
"github.com/stretchr/testify/require"
9+
vshardrouter "github.com/tarantool/go-vshard-router"
10+
"github.com/tarantool/go-vshard-router/providers/static"
1111
)
1212

1313
func TestRouterMapCall(t *testing.T) {

tests/tnt/tnt_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
"testing"
1010

11-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
11+
vshardrouter "github.com/tarantool/go-vshard-router"
1212
)
1313

1414
const (

tests/tnt/topology_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"testing"
77
"time"
88

9-
vshardrouter "github.com/KaymeKaydex/go-vshard-router"
10-
"github.com/KaymeKaydex/go-vshard-router/providers/static"
119
"github.com/stretchr/testify/require"
10+
vshardrouter "github.com/tarantool/go-vshard-router"
11+
"github.com/tarantool/go-vshard-router/providers/static"
1212
)
1313

1414
func TestTopology(t *testing.T) {

topology_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"errors"
66
"testing"
77

8-
mockpool "github.com/KaymeKaydex/go-vshard-router/mocks/pool"
98
"github.com/google/uuid"
109
"github.com/stretchr/testify/require"
10+
mockpool "github.com/tarantool/go-vshard-router/mocks/pool"
1111
)
1212

1313
func TestRouter_Topology(t *testing.T) {

0 commit comments

Comments
 (0)