backend.Records make it take request.Request (#943)
This is more general and aligns well with the other methods. Also allows the kubernetes middleware to use it. Fixes #940
This commit is contained in:
parent
627687b11f
commit
7c343982a6
4 changed files with 14 additions and 12 deletions
|
@ -28,7 +28,7 @@ type ServiceBackend interface {
|
|||
|
||||
// Returns _all_ services that matches a certain name.
|
||||
// Note: it does not implement a specific service.
|
||||
Records(name string, exact bool) ([]msg.Service, error)
|
||||
Records(state request.Request, 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