3 // Registrar registers instance information to a service discovery system when
4 // an instance becomes alive and healthy, and deregisters that information when
5 // the service becomes unhealthy or goes away.
7 // Registrar implementations exist for various service discovery systems. Note
8 // that identifying instance information (e.g. host:port) must be given via the
9 // concrete constructor; this interface merely signals lifecycle changes.
10 type Registrar interface {