Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UrlMutexes = make(map[string]*mutexWithTime)
mutexes to queue mass simultaneous requests of same url
View Source
var UrlMutexesLock sync.Mutex
Functions ¶
func CleanUrlMutexes ¶
cleans up the UrlMutexes map by removing mutexes that have not been accessed in the last minute.
func GetOrCreateUrlMutex ¶
func GetOrCreateUrlMutex(url string) *mutexWithTime
creates or retrieves a mutex for a given URL from the urlMutexes map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.