mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user