1 package sd 2 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. 6 // 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 { 11 Register() 12 Deregister() 13 } 14