MCPcopy
hub / github.com/coredns/coredns / parseForward

Function parseForward

plugin/forward/setup.go:89–99  ·  view source on GitHub ↗
(c *caddy.Controller)

Source from the content-addressed store, hash-verified

87}
88
89func parseForward(c *caddy.Controller) ([]*Forward, error) {
90 var fs = []*Forward{}
91 for c.Next() {
92 f, err := parseStanza(c)
93 if err != nil {
94 return nil, err
95 }
96 fs = append(fs, f)
97 }
98 return fs, nil
99}
100
101// Splits the zone, preserving any port that comes after the zone
102func splitZone(host string) (newHost string, zone string) {

Callers 15

setupFunction · 0.85
TestSetupResolverFunction · 0.85
TestSetupFunction · 0.85
TestSetupTLSFunction · 0.85
TestSetupResolvconfFunction · 0.85
TestSetupMaxConcurrentFunction · 0.85
TestSetupMaxIdleConnsFunction · 0.85
TestSetupHealthCheckFunction · 0.85

Calls 2

NextMethod · 0.80
parseStanzaFunction · 0.70

Tested by 15

TestSetupResolverFunction · 0.68
TestSetupFunction · 0.68
TestSetupTLSFunction · 0.68
TestSetupResolvconfFunction · 0.68
TestSetupMaxConcurrentFunction · 0.68
TestSetupMaxIdleConnsFunction · 0.68
TestSetupHealthCheckFunction · 0.68
TestNextAlternateFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…