mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Updated cgr-loader to accept URLs as path to data
This commit is contained in:
committed by
Dan Christian Bogos
parent
d4fc68c86b
commit
57cfcbf5fc
@@ -942,3 +942,9 @@ type LoadIDsWithArgDispatcher struct {
|
||||
TenantArg
|
||||
*ArgDispatcher
|
||||
}
|
||||
|
||||
// IsURL returns if the path is an URL
|
||||
func IsURL(path string) bool {
|
||||
return strings.HasPrefix(path, "https://") ||
|
||||
strings.HasPrefix(path, "http://")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user