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:
Miek Gieben 2017-08-19 14:03:03 +01:00 committed by GitHub
parent 627687b11f
commit 7c343982a6
4 changed files with 14 additions and 12 deletions

View file

@ -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.