MCPcopy
hub / github.com/go-sql-driver/mysql / DeregisterTLSConfig

Function DeregisterTLSConfig

utils.go:73–79  ·  view source on GitHub ↗

DeregisterTLSConfig removes the tls.Config associated with key.

(key string)

Source from the content-addressed store, hash-verified

71
72// DeregisterTLSConfig removes the tls.Config associated with key.
73func DeregisterTLSConfig(key string) {
74 tlsConfigLock.Lock()
75 if tlsConfigRegistry != nil {
76 delete(tlsConfigRegistry, key)
77 }
78 tlsConfigLock.Unlock()
79}
80
81func getTLSConfigClone(key string) (config *tls.Config) {
82 tlsConfigLock.RLock()

Callers 3

TestDSNWithCustomTLSFunction · 0.85
TestNormalizeTLSConfigFunction · 0.85

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 3

TestDSNWithCustomTLSFunction · 0.68
TestNormalizeTLSConfigFunction · 0.68