Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Install = self.Install Uninstall = self.Uninstall )
View Source
var With _Option
Functions ¶
func NewRegistry ¶
func NewRegistry(settings ...option.Setting[RegistryOptions]) discovery.IRegistry
NewRegistry 创建registry插件,可以配合registry cache将数据缓存本地,提高查询效率
Types ¶
type RegistryOptions ¶
type RegistryOptions struct { EtcdClient *clientv3.Client EtcdConfig *clientv3.Config KeyPrefix string WatchChanSize int TTL time.Duration AutoRefreshTTL bool CustomUsername string CustomPassword string CustomAddresses []string CustomTLSConfig *tls.Config }
RegistryOptions 所有选项
Click to show internal directories.
Click to hide internal directories.