hertz-contrib / registry

The service registration & discovery extensions for Hertz
Apache License 2.0
27 stars 39 forks source link

请问 ETCD 的验证方式支持吗? #31

Closed flydo closed 1 year ago

flydo commented 1 year ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

当 ETCD 开启了用户名和密码验证时,如何使用?Kitex 的方案带验证的功能,Hertz 这边我查了下,没有找到相关的方案。

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

li-jin-gou commented 1 year ago

It doesn't look supported, would you like to submit a PR?

L2ncE commented 1 year ago

Update to latest version, use etcd.WithAuthOpt(username, password)