mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-09 19:29:29 +08:00

* Fix Dockerfile base Go version Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Update Go version and dependencies Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
14 lines
509 B
Go
14 lines
509 B
Go
package sd
|
|
|
|
// Registrar registers instance information to a service discovery system when
|
|
// an instance becomes alive and healthy, and deregisters that information when
|
|
// the service becomes unhealthy or goes away.
|
|
//
|
|
// Registrar implementations exist for various service discovery systems. Note
|
|
// that identifying instance information (e.g. host:port) must be given via the
|
|
// concrete constructor; this interface merely signals lifecycle changes.
|
|
type Registrar interface {
|
|
Register()
|
|
Deregister()
|
|
}
|