SetConfiguration sets the server configuration to the given config.
(newConfig *Options)
| 76 | |
| 77 | // SetConfiguration sets the server configuration to the given config. |
| 78 | func 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. |
| 87 | var AvailableMemory int64 |