Added Fetcher

This commit is contained in:
Artyom Belousov 2021-02-07 10:33:16 +03:00
parent b823cffe69
commit 40f1687972
10 changed files with 36 additions and 19 deletions

View file

@ -10,13 +10,8 @@ type CacheClient struct {
Expiration time.Duration
}
var client *CacheClient
func GetClient() *CacheClient {
if client != nil {
return client
}
client = new(CacheClient)
client := new(CacheClient)
client.Init()
return client
}