diff options
Diffstat (limited to 'internal/config/runtime.go')
| -rw-r--r-- | internal/config/runtime.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/internal/config/runtime.go b/internal/config/runtime.go new file mode 100644 index 0000000..1e19265 --- /dev/null +++ b/internal/config/runtime.go @@ -0,0 +1,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, + } +} |
