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

Function getTLSConfigClone

utils.go:81–88  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

79}
80
81func getTLSConfigClone(key string) (config *tls.Config) {
82 tlsConfigLock.RLock()
83 if v, ok := tlsConfigRegistry[key]; ok {
84 config = v.Clone()
85 }
86 tlsConfigLock.RUnlock()
87 return
88}
89
90// Returns the bool value of the input.
91// The 2nd return value indicates if the input was a valid bool value

Callers 1

normalizeMethod · 0.85

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected