MCPcopy
hub / github.com/badafans/better-cloudflare-ip / dataPath

Function dataPath

main.go:520–525  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

518}
519
520func dataPath(name string) string {
521 if dataDir == "" {
522 return name
523 }
524 return filepath.Join(dataDir, name)
525}
526
527var downloadClient = &http.Client{Timeout: 30 * time.Second}
528

Callers 5

cloudflareTestFunction · 0.85
clearCacheFunction · 0.85
updateDataFunction · 0.85
downloadAllDataFunction · 0.85
initLocationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected