Skip to content

Commit 7ef86f0

Browse files
committed
api: start v2
1 parent 403f2c3 commit 7ef86f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+131
-131
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The package `go-tarantool` is located in [tarantool/go-tarantool][go-tarantool]
4545
repository. To download and install, say:
4646

4747
```
48-
$ go get github.com/tarantool/go-tarantool
48+
$ go get github.com/tarantool/go-tarantool/v2
4949
```
5050

5151
This should put the source and binary files in subdirectories of
@@ -112,7 +112,7 @@ package tarantool
112112

113113
import (
114114
"fmt"
115-
"github.com/tarantool/go-tarantool"
115+
"github.com/tarantool/go-tarantool/v2"
116116
)
117117

118118
func main() {
@@ -129,7 +129,7 @@ func main() {
129129
}
130130
```
131131

132-
**Observation 1:** The line "`github.com/tarantool/go-tarantool`" in the
132+
**Observation 1:** The line "`github.com/tarantool/go-tarantool/v2`" in the
133133
`import(...)` section brings in all Tarantool-related functions and structures.
134134

135135
**Observation 2:** The line starting with "`Opts :=`" sets up the options for

auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/stretchr/testify/assert"
8-
. "github.com/tarantool/go-tarantool"
8+
. "github.com/tarantool/go-tarantool/v2"
99
)
1010

1111
func TestAuth_String(t *testing.T) {

box_error_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/require"
9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
var samples = map[string]BoxError{

call_16_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package tarantool_test
66
import (
77
"testing"
88

9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
func TestConnection_Call(t *testing.T) {

call_17_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package tarantool_test
66
import (
77
"testing"
88

9-
. "github.com/tarantool/go-tarantool"
10-
"github.com/tarantool/go-tarantool/test_helpers"
9+
. "github.com/tarantool/go-tarantool/v2"
10+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1111
)
1212

1313
func TestConnection_Call(t *testing.T) {

connection_pool/call_16_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/require"
10-
"github.com/tarantool/go-tarantool/connection_pool"
11-
"github.com/tarantool/go-tarantool/test_helpers"
10+
"github.com/tarantool/go-tarantool/v2/connection_pool"
11+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1212
)
1313

1414
func TestCall(t *testing.T) {

connection_pool/call_17_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"testing"
88

99
"github.com/stretchr/testify/require"
10-
"github.com/tarantool/go-tarantool/connection_pool"
11-
"github.com/tarantool/go-tarantool/test_helpers"
10+
"github.com/tarantool/go-tarantool/v2/connection_pool"
11+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1212
)
1313

1414
func TestCall(t *testing.T) {

connection_pool/connection_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"sync"
1818
"time"
1919

20-
"github.com/tarantool/go-tarantool"
20+
"github.com/tarantool/go-tarantool/v2"
2121
)
2222

2323
var (

connection_pool/connection_pool_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313

1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
16-
"github.com/tarantool/go-tarantool"
17-
"github.com/tarantool/go-tarantool/connection_pool"
18-
"github.com/tarantool/go-tarantool/test_helpers"
16+
"github.com/tarantool/go-tarantool/v2"
17+
"github.com/tarantool/go-tarantool/v2/connection_pool"
18+
"github.com/tarantool/go-tarantool/v2/test_helpers"
1919
)
2020

2121
var spaceNo = uint32(520)

connection_pool/connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"time"
77

8-
"github.com/tarantool/go-tarantool"
8+
"github.com/tarantool/go-tarantool/v2"
99
)
1010

1111
// ConnectorAdapter allows to use Pooler as Connector.

0 commit comments

Comments
 (0)