MCPcopy
hub / github.com/apache/answer / coordinatedCDNPlugins

Function coordinatedCDNPlugins

plugin/cdn.go:50–65  ·  view source on GitHub ↗
(slugName string)

Source from the content-addressed store, hash-verified

48)
49
50func coordinatedCDNPlugins(slugName string) (enabledSlugNames []string) {
51 isCDN := false
52 _ = CallCDN(func(cdn CDN) error {
53 name := cdn.Info().SlugName
54 if slugName == name {
55 isCDN = true
56 } else {
57 enabledSlugNames = append(enabledSlugNames, name)
58 }
59 return nil
60 })
61 if isCDN {
62 return enabledSlugNames
63 }
64 return nil
65}

Callers 1

EnableMethod · 0.85

Calls 1

InfoMethod · 0.65

Tested by

no test coverage detected