MCPcopy
hub / github.com/coredns/coredns / Policy

Interface Policy

plugin/forward/policy.go:12–15  ·  view source on GitHub ↗

Policy defines a policy we use for selecting upstreams.

Source from the content-addressed store, hash-verified

10
11// Policy defines a policy we use for selecting upstreams.
12type Policy interface {
13 List([]*proxy.Proxy) []*proxy.Proxy
14 String() string
15}
16
17// random is a policy that implements random upstream selection.
18type random struct{}

Callers

nothing calls this directly

Implementers 6

randomplugin/forward/policy.go
roundRobinplugin/forward/policy.go
sequentialplugin/forward/policy.go
randomplugin/grpc/policy.go
roundRobinplugin/grpc/policy.go
sequentialplugin/grpc/policy.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…