Registrar interface for service registrar.
| 22 | |
| 23 | // Registrar interface for service registrar. |
| 24 | type 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. |
| 34 | type Discovery interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…