package
Version:
v0.0.0-...-281483f
Opens a new window with list of versions in this module.
Published: Nov 4, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewResolver initialize an etcd client
Register register service with name as prefix to etcd, multi etcd addr should use ; to split
etcdAddr etcd地址
name 服务名称
addr 服务的地址
ttl 服务注册在etcd键的过期时间
UnRegister remove service from etcd
Source Files
¶
Click to show internal directories.
Click to hide internal directories.