File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,15 @@ import (
4
4
"github.com/tarantool/go-tarantool/v2"
5
5
)
6
6
7
- // Box defines an interface for interacting with a Tarantool instance.
8
- // It includes the Info method, which retrieves instance information.
9
- type Box interface {
10
- Info () (Info , error ) // Retrieves detailed information about the Tarantool instance.
11
- }
12
-
13
- // box is a concrete implementation of the Box interface.
7
+ // Box is a helper that wraps for box.* requests.
14
8
// It holds a connection to the Tarantool instance via the Doer interface.
15
- type box struct {
9
+ type Box struct {
16
10
conn tarantool.Doer // Connection interface for interacting with Tarantool.
17
11
}
18
12
19
13
// By returns a new instance of the box structure, which implements the Box interface.
20
- func By (conn tarantool.Doer ) Box {
21
- return & box {
14
+ func New (conn tarantool.Doer ) Box {
15
+ return & Box {
22
16
conn : conn , // Assigns the provided Tarantool connection.
23
17
}
24
18
}
You can’t perform that action at this time.
0 commit comments