Commit 306ed9fe by 孙龙

up

parent a59f3f23
Showing with 10 additions and 0 deletions
...@@ -67,6 +67,16 @@ func main(){ ...@@ -67,6 +67,16 @@ func main(){
//} //}
//查询 //查询
getResp,err = kv.Get(context.TODO(),"/cron/workers",clientv3.WithPrefix())
if err != nil {
fmt.Println(err)
return
}
for _, kvpair := range getResp.Kvs {
fmt.Println(kvpair)
}
getResp,err = kv.Get(context.TODO(),"/cron/jobs",clientv3.WithPrefix()) getResp,err = kv.Get(context.TODO(),"/cron/jobs",clientv3.WithPrefix())
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment