MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / GetConfig

Function GetConfig

sqlchain/adapter/config/config.go:183–188  ·  view source on GitHub ↗

GetConfig returns global initialized config.

()

Source from the content-addressed store, hash-verified

181
182// GetConfig returns global initialized config.
183func GetConfig() *Config {
184 currentConfigLock.Lock()
185 defer currentConfigLock.Unlock()
186
187 return currentConfig
188}
189
190func loadCert(pemFile string) (cert *x509.Certificate, err error) {
191 // only the first pem section is parsed and identified as certificate.

Callers 6

ServeMethod · 0.92
QueryMethod · 0.92
WriteMethod · 0.92
adminPrivilegeCheckerFunction · 0.92
CreateDatabaseMethod · 0.92
DropDatabaseMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected