Codebase list golang-github-go-kit-kit / 203e4782-15ed-484f-9517-a1c12654c5bc/v0.6.0 sd / registrar.go
203e4782-15ed-484f-9517-a1c12654c5bc/v0.6.0

Tree @203e4782-15ed-484f-9517-a1c12654c5bc/v0.6.0 (Download .tar.gz)

registrar.go @203e4782-15ed-484f-9517-a1c12654c5bc/v0.6.0raw · 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()
}