Codebase list golang-github-go-kit-kit / eb8486a6-f182-4772-872e-3e24b6b63e39/main sd / registrar.go
eb8486a6-f182-4772-872e-3e24b6b63e39/main

Tree @eb8486a6-f182-4772-872e-3e24b6b63e39/main (Download .tar.gz)

registrar.go @eb8486a6-f182-4772-872e-3e24b6b63e39/mainraw · history · blame

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()
}