MCPcopy
hub / github.com/gogf/gf / Registrar

Interface Registrar

net/gsvc/gsvc.go:24–31  ·  view source on GitHub ↗

Registrar interface for service registrar.

Source from the content-addressed store, hash-verified

22
23// Registrar interface for service registrar.
24type Registrar interface {
25 // Register registers `service` to Registry.
26 // Note that it returns a new Service if it changes the input Service with custom one.
27 Register(ctx context.Context, service Service) (registered Service, err error)
28
29 // Deregister off-lines and removes `service` from the Registry.
30 Deregister(ctx context.Context, service Service) error
31}
32
33// Discovery interface for service discovery.
34type Discovery interface {

Callers 16

TestRegistry_RegisterFunction · 0.65
TestRegistry_DeregisterFunction · 0.65
TestRegistryManyFunction · 0.65
TestRegistry_SearchFunction · 0.65
TestRegistry_WatchFunction · 0.65
TestWatcher_ProceedFunction · 0.65
BenchmarkRegisterFunction · 0.65
DeregisterMethod · 0.65
TestRegistry_RegisterFunction · 0.65
TestRegistry_DeregisterFunction · 0.65
TestRegistryManyFunction · 0.65

Implementers 6

Registrycontrib/registry/polaris/polaris.go
Registrycontrib/registry/etcd/etcd.go
Registrycontrib/registry/consul/consul.go
Registrycontrib/registry/file/file.go
Registrycontrib/registry/nacos/nacos.go
Registrycontrib/registry/zookeeper/zookeeper.g

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…