blob: 1e1926517c69faa2b2cea2b52045d3d9657e33a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package config
// RuntimeConfig contains the active runtime configuration for a process.
// It is intended to be injected into components instead of relying on package globals.
type RuntimeConfig struct {
Client *ClientConfig
Server *ServerConfig
Common *CommonConfig
}
// CurrentRuntime returns the currently initialized runtime configuration.
func CurrentRuntime() RuntimeConfig {
return RuntimeConfig{
Client: Client,
Server: Server,
Common: Common,
}
}
|