首页 > 其他分享 ># github.com/coreos/etcd/clientv3/balancer/resolver/endpoint

# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint

时间:2023-09-21 14:44:58浏览次数:41  
标签:clientv3 github resolver balancer endpoint etcd go

linux使用go连接etcd集群时报错:

# github.com/coreos/etcd/clientv3/balancer/resolver/endpoint
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:114:87: undefined: resolver.BuildOption
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:115:16: target.Authority undefined (type resolver.Target has no field or method Authority)
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:118:15: target.Authority undefined (type resolver.Target has no field or method Authority)
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/resolver/endpoint/endpoint.go:182:40: undefined: resolver.ResolveNowOption
# github.com/coreos/etcd/clientv3/balancer/picker
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/picker/err.go:37:53: undefined: balancer.PickOptions
/root/go/pkg/mod/github.com/coreos/[email protected]+incompatible/clientv3/balancer/picker/roundrobin_balanced.go:55:63: undefined: balancer.PickOptions

 

解决方法:

修改go.mod中grpc的版本为v1.26.0

google.golang.org/grpc v1.26.0 // indirect

再执行下面的命令就可以了

go mod edit -require=google.golang.org/[email protected]
go get -u -x google.golang.org/[email protected]

 

标签:clientv3,github,resolver,balancer,endpoint,etcd,go
From: https://www.cnblogs.com/Xinenhui/p/17719884.html

相关文章

  • Clone fail unable to access 'httpsgithub.comLovi-githubmyUserCenter.git' OpenSSL
    bug:unabletoaccess'https://github.com/xxx':OpenSSLSSL_read:SSL_ERROR_SYSCALL,errno10054关于git提交github出现errno10054、port443:Timedout等问题解决_git提交10054_husishuai的博客-CSDN博客按照上边的解决方法即可......
  • QA|Pycharm update时报错ssh: connect to host github.com port 22: Connection timed
    场景:另一台电脑很久没有链接Github了,今天执行update失败,报错如下:2023/9/2015:09UpdatefailedFunny_ScriptsandSpider:Connectionresetby20.205.243.166port22Couldnotreadfromremoterepository.Please......
  • Git同时配置Gitee和GitHub
    Git同时配置Gitee和GitHub建议所有命令在gitbash中进行清除git的全局设置如果之前没有配置过gitconfig,就不用清除了。通过命令gitconfig--global--list查看是否设置过。#清除name和emailgitconfig--global--unsetuser.namegitconfig--global--unsetuser......
  • Github 自建一个 Helm Charts 库
    前言在构建私有的charts仓库之前,有几个先决条件:Helm已经安装,版本号是v3拥有一个Github账号初始化仓库在github仓库上新建一个仓库,我这里命名为helm-charts,然后在安装有helm的系统中把克隆仓库下来。这些不用多说,都会helm了,git肯定是小菜一碟。然后进入helm-......
  • 腾讯Fast-Causal-Inference已经在GitHub中公布,采用SQL交互
          腾讯近日宣布旗下的开源分布式数据科学组件项目Fast-Causal-Inference已经在GitHub中公布。根据公开资料显示,这是由腾讯微信研发,采用SQL交互的,基于分布式向量化的统计分析、因果推断计算库,宣称“解决已有统计模型库(R/Python)在大数据下的性能瓶颈,提供百亿......
  • Github的一个奇技淫巧
    背景前段时间给VictoriaLogs提交了一个PR:https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4934本来一切都很顺利,只等合并了,但在临门一脚的时候社区维护人员问我可否给gitcommit加上签名。于是我就默默的调试到了凌晨四点......
  • github 2fa中国认证及TOTP App
    BecauseofyourcontributionsonGitHub,two-factorauthenticationwillberequiredforyouraccountstartingSep28,2023.Thankyouforhelpingkeeptheecosystemsafe!Learnmoreaboutourtwo-factorauthenticationinitiative.2FA对github有代码贡献的帐号......
  • 如何把本地的git仓库上传GitHub?
    由于平时都是拉公司的代码,很少会有自己的代码上传,而且我记得之前在GitHub新建仓库后会有命令提示,这次没有,所以还是费了一点时间初始化gitinit添加到暂存区gitadd.提交到本地仓库,并对本次提交描述gitcommit-m"firstpush"添加远程仓库gitremoteaddoriginGitHub地址为此分......
  • 超级好用绘图工具(Draw.io+Github)
    超级好用绘图工具(Draw.io+Github)方案简介绘图工具:Draw.io存储方式:Github1Draw.io1.2简介​ 是一款免费开源的在线流程图绘制软件,可以用于创建流程图、组织结构图、网络图、UML图等各种类型的图表。它提供了丰富的图形元素和编辑功能,使用户能够轻松地创建和编辑图......
  • GitHub 上的开源项目贡献流程具体操作流程
    一般的GitHub上的贡献流程,包括创建fork、克隆、修改、提交、创建PullRequest的详细步骤:创建Fork:访问你要贡献的项目的GitHub页面,点击右上角的"Fork"按钮,这会在你的GitHub账户下创建该项目的副本。克隆项目:打开你的终端(命令行界面)并执行以下命令,将fork的项......