X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=caches%2Fcaches.go;fp=caches%2Fcaches.go;h=f451da46a1183b9cc9ba16f2ed23c28b1da20dd8;hb=1b3ef99af2896156902264aaccced15426874484;hp=0000000000000000000000000000000000000000;hpb=2a793fabff3fefc42e99a43a7a26eee2fb98badf;p=tofuproxy.git diff --git a/caches/caches.go b/caches/caches.go new file mode 100644 index 0000000..f451da4 --- /dev/null +++ b/caches/caches.go @@ -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 +)