zeromicro / zero-contrib

A collection of extensions and tools for go-zero.
184 stars 77 forks source link

How to enabled the client to auto reconnect after random restart of consul? #323

Open yunfan opened 5 months ago

yunfan commented 5 months ago

hi we are using this to register our service to consul like in main.go from README_cn.md

i guess there were two style to impl this 1, to have a new Configuration item which indicated whther the client should reconnect to consul after a random disconnecting events

2, to register a hook for th traget vps