MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / getSettingByKey

Function getSettingByKey

core/cmd/server/cmd/root.go:63–67  ·  view source on GitHub ↗
(db *gorm.DB, key string)

Source from the content-addressed store, hash-verified

61}
62
63func getSettingByKey(db *gorm.DB, key string) string {
64 var setting setting
65 _ = db.Where("key = ?", key).First(&setting).Error
66 return setting.Value
67}
68
69type LoginLog struct{}
70

Callers 4

user-info.goFile · 0.85
dropUpgradeBackupCopiesFunction · 0.85
passwordFunction · 0.85
version.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected