middleware/backend: add Records() to ServiceBackend interface (#770)

This commit is contained in:
Mia Boulay 2017-07-01 18:19:57 -04:00 committed by Miek Gieben
parent 7fada97ee3
commit ade7603021
3 changed files with 14 additions and 5 deletions

View file

@ -25,6 +25,10 @@ type ServiceBackend interface {
// Debug returns a string used when returning debug services.
Debug() string
// Returns _all_ services that matches a certain name.
// Note: it does not implement a specific service.
Records(name string, exact bool) ([]msg.Service, error)
}
// Options are extra options that can be specified for a lookup.