Slide 34
Slide 34 text
Consul Implement the interface
type consulRegistry struct {}
func (c *consulRegistry) Register(*Service, ...RegisterOption) error {…}
func (c *consulRegistry) Deregister(*Service) error {…}
func (c *consulRegistry) GetService(string) ([]*Service, error) {…}
func (c *consulRegistry) ListServices() ([]*Service, error) {…}
func (c *consulRegistry) Watch() (Watcher, error) {…}
func (c *consulRegistry) String() string { return "consul" }
func NewRegistry(...Option) Registry {
return &consulRegistry{}
}