Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gostnops
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
gostnops
Commits
30dcf584
Commit
30dcf584
authored
Mar 08, 2021
by
wangwx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments for explower function
parent
030139cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
client.go
database/kv/etcd/v3/client.go
+3
-1
No files found.
database/kv/etcd/v3/client.go
View file @
30dcf584
...
@@ -136,7 +136,7 @@ func (c *Client) stop() bool {
...
@@ -136,7 +136,7 @@ func (c *Client) stop() bool {
}
}
}
}
//
Close close clien
t
//
GetCtx return client contex
t
func
(
c
*
Client
)
GetCtx
()
context
.
Context
{
func
(
c
*
Client
)
GetCtx
()
context
.
Context
{
return
c
.
ctx
return
c
.
ctx
}
}
...
@@ -206,6 +206,7 @@ func (c *Client) GetRawClient() *clientv3.Client {
...
@@ -206,6 +206,7 @@ func (c *Client) GetRawClient() *clientv3.Client {
return
c
.
rawClient
return
c
.
rawClient
}
}
//GetEndPoints return etcd endpoints
func
(
c
*
Client
)
GetEndPoints
()
[]
string
{
func
(
c
*
Client
)
GetEndPoints
()
[]
string
{
return
c
.
endpoints
return
c
.
endpoints
}
}
...
@@ -283,6 +284,7 @@ func (c *Client) CleanKV() error {
...
@@ -283,6 +284,7 @@ func (c *Client) CleanKV() error {
return
err
return
err
}
}
//GetChildren return node children
func
(
c
*
Client
)
GetChildren
(
k
string
)
([]
string
,
[]
string
,
error
)
{
func
(
c
*
Client
)
GetChildren
(
k
string
)
([]
string
,
[]
string
,
error
)
{
rawClient
:=
c
.
GetRawClient
()
rawClient
:=
c
.
GetRawClient
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment