middleware/backend: add Records() to ServiceBackend interface (#770)
This commit is contained in:
parent
7fada97ee3
commit
ade7603021
3 changed files with 14 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue