Documentation ¶
Index ¶
- Variables
- type RegistryOption
- type RegistryOptions
- type WithOption
- func (WithOption) Default() RegistryOption
- func (WithOption) EtcdClient(cli *clientv3.Client) RegistryOption
- func (WithOption) EtcdConfig(config *clientv3.Config) RegistryOption
- func (WithOption) FastAddresses(addrs ...string) RegistryOption
- func (WithOption) FastAuth(username, password string) RegistryOption
- func (WithOption) FastSecure(secure bool) RegistryOption
- func (WithOption) FastTLSConfig(conf *tls.Config) RegistryOption
- func (WithOption) KeyPrefix(prefix string) RegistryOption
- func (WithOption) WatchChanSize(size int) RegistryOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Install = definePlugin.Install
Install 安装插件
View Source
var NewRegistry = newEtcdRegistry
NewRegistry 导出newEtcdRegistry,可以配合cache registry将数据缓存本地,提高查询效率
View Source
var Uninstall = definePlugin.Uninstall
Uninstall 卸载插件
Functions ¶
This section is empty.
Types ¶
type RegistryOption ¶ added in v0.1.14
type RegistryOption func(options *RegistryOptions)
type RegistryOptions ¶ added in v0.1.14
type WithOption ¶ added in v0.1.10
type WithOption struct{}
func (WithOption) Default ¶ added in v0.1.10
func (WithOption) Default() RegistryOption
func (WithOption) EtcdClient ¶ added in v0.1.10
func (WithOption) EtcdClient(cli *clientv3.Client) RegistryOption
func (WithOption) EtcdConfig ¶ added in v0.1.10
func (WithOption) EtcdConfig(config *clientv3.Config) RegistryOption
func (WithOption) FastAddresses ¶ added in v0.1.10
func (WithOption) FastAddresses(addrs ...string) RegistryOption
func (WithOption) FastAuth ¶ added in v0.1.10
func (WithOption) FastAuth(username, password string) RegistryOption
func (WithOption) FastSecure ¶ added in v0.1.10
func (WithOption) FastSecure(secure bool) RegistryOption
func (WithOption) FastTLSConfig ¶ added in v0.1.10
func (WithOption) FastTLSConfig(conf *tls.Config) RegistryOption
func (WithOption) KeyPrefix ¶ added in v0.1.10
func (WithOption) KeyPrefix(prefix string) RegistryOption
func (WithOption) WatchChanSize ¶ added in v0.1.10
func (WithOption) WatchChanSize(size int) RegistryOption
Click to show internal directories.
Click to hide internal directories.