Documentation ¶ Index ¶ func NewDiscovery(cfg *conf.Registry) registry.Discovery func NewRegistry(cfg *conf.Registry) registry.Registrar type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDiscovery ¶ func NewDiscovery(cfg *conf.Registry) registry.Discovery NewDiscovery 创建一个发现客户端 func NewRegistry ¶ func NewRegistry(cfg *conf.Registry) registry.Registrar NewRegistry 创建一个注册客户端 Types ¶ type Type ¶ type Type string const ( Consul Type = "consul" Etcd Type = "etcd" ZooKeeper Type = "zookeeper" Nacos Type = "nacos" Kubernetes Type = "kubernetes" Eureka Type = "eureka" Polaris Type = "polaris" Servicecomb Type = "servicecomb" ) Source Files ¶ View all Source files options.go registry.go Directories ¶ Show internal Expand all Path Synopsis consul etcd eureka kubernetes nacos polaris servicecomb zookeeper Click to show internal directories. Click to hide internal directories.