MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetSettingsMap

Function GetSettingsMap

internal/op/setting.go:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func GetSettingsMap() map[string]string {
48 items, _ := GetSettingItems()
49 settings := make(map[string]string)
50 for _, item := range items {
51 settings[item.Key] = item.Value
52 }
53 return settings
54}
55
56func GetSettingItems() ([]model.SettingItem, error) {
57 if items, exists := Cache.GetSettingGroup("ALL_SETTING_ITEMS"); exists {

Callers

nothing calls this directly

Calls 1

GetSettingItemsFunction · 0.70

Tested by

no test coverage detected