]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - caches/caches.go
Ability to remove hosts from the states, refactoring
[tofuproxy.git] / caches / caches.go
diff --git a/caches/caches.go b/caches/caches.go
new file mode 100644 (file)
index 0000000..f451da4
--- /dev/null
@@ -0,0 +1,20 @@
+package caches
+
+import (
+       "crypto/tls"
+       "sync"
+)
+
+var (
+       Accepted  = make(map[string]string)
+       AcceptedM sync.RWMutex
+
+       Rejected  = make(map[string]string)
+       RejectedM sync.RWMutex
+
+       HTTPAuthCache  = make(map[string][2]string)
+       HTTPAuthCacheM sync.RWMutex
+
+       TLSAuthCache  = make(map[string]*tls.Certificate)
+       TLSAuthCacheM sync.RWMutex
+)