mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
adding sequential policy to forward plugin (#1704)
* adding sequential policy to forward plugin * making sequential an alias to first in proxy plugin
This commit is contained in:
committed by
Miek Gieben
parent
26d1432ae6
commit
19a1ef48f2
@@ -53,3 +53,13 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy {
|
||||
|
||||
return robin
|
||||
}
|
||||
|
||||
// sequential is a policy that selects hosts based on sequential ordering.
|
||||
type sequential struct {}
|
||||
|
||||
func (r *sequential) String() string { return "sequential" }
|
||||
|
||||
func (r *sequential) List(p []*Proxy) []*Proxy {
|
||||
return p
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user