MCPcopy
hub / github.com/dgraph-io/dgraph / SetConfiguration

Function SetConfiguration

worker/config.go:78–84  ·  view source on GitHub ↗

SetConfiguration sets the server configuration to the given config.

(newConfig *Options)

Source from the content-addressed store, hash-verified

76
77// SetConfiguration sets the server configuration to the given config.
78func SetConfiguration(newConfig *Options) {
79 if newConfig == nil {
80 return
81 }
82 newConfig.validate()
83 Config = *newConfig
84}
85
86// AvailableMemory is the total size of the memory we were able to identify.
87var AvailableMemory int64

Callers 1

runFunction · 0.92

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected