Codebase list golang-github-go-kit-kit / 3b9658d9-4065-4804-9af8-16961c419f60/upstream/0.12.0+git20220826.1.a7ba4fa sd / registrar.go
3b9658d9-4065-4804-9af8-16961c419f60/upstream/0.12.0+git20220826.1.a7ba4fa

Tree @3b9658d9-4065-4804-9af8-16961c419f60/upstream/0.12.0+git20220826.1.a7ba4fa (Download .tar.gz)

registrar.go @3b9658d9-4065-4804-9af8-16961c419f60/upstream/0.12.0+git20220826.1.a7ba4faraw · 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()
}