Codebase list golang-github-go-kit-kit / run/d2f2902b-79c4-43cd-8c09-341e33fc6017/upstream sd / registrar.go
run/d2f2902b-79c4-43cd-8c09-341e33fc6017/upstream

Tree @run/d2f2902b-79c4-43cd-8c09-341e33fc6017/upstream (Download .tar.gz)

registrar.go @run/d2f2902b-79c4-43cd-8c09-341e33fc6017/upstreamraw · 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()
}