refactor(server): alias AppOptions to coreserver.DynamicConfig (#21711)

This commit is contained in:
Julien Robert
2024-09-13 18:51:45 +00:00
committed by GitHub
parent 7ee7c207d5
commit d54f034462
4 changed files with 19 additions and 3 deletions
+9
View File
@@ -307,6 +307,15 @@ func (m AppOptionsMap) Get(key string) interface{} {
return v
}
func (m AppOptionsMap) GetString(key string) string {
v, ok := m[key]
if !ok {
return ""
}
return v.(string)
}
func NewAppOptionsWithFlagHome(homePath string) servertypes.AppOptions {
return AppOptionsMap{
flags.FlagHome: homePath,