bilibili / discovery

A registry for resilient mid-tier load balancing and failover.
MIT License
1.78k stars 400 forks source link

缺少获取所有的appId的api #44

Open jiyeyuran opened 5 years ago

jiyeyuran commented 5 years ago

没有这个接口无法提供go-micro注册中心的插件实现

type Registry interface {
    Init(...Option) error
    Options() Options
    Register(*Service, ...RegisterOption) error
    Deregister(*Service) error
    GetService(string) ([]*Service, error)
    ListServices() ([]*Service, error)
    Watch(...WatchOption) (Watcher, error)
    String() string
}
lintanghui commented 5 years ago

/discovery/fetch/all

jiyeyuran commented 5 years ago

nice,建议在api.md中加上这个api的文档。

huajason commented 5 years ago

对, 建议在文档上加一下, 这个我找了好久