Documentation
¶
Index ¶
- func GetAnnouncements() []map[string]interface{}
- func GetAnnouncementsForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
- func GetApiInfo() []map[string]interface{}
- func GetApiInfoForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
- func GetFAQ() []map[string]interface{}
- func GetFAQForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
- func GetUptimeKumaGroups() []map[string]interface{}
- func GetUptimeKumaGroupsForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
- func ValidateConsoleSettings(settingsStr string, settingType string) error
- type ConsoleSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnouncements ¶
func GetAnnouncements() []map[string]interface{}
func GetAnnouncementsForConsoleSetting ¶
func GetAnnouncementsForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
func GetApiInfo ¶
func GetApiInfo() []map[string]interface{}
func GetApiInfoForConsoleSetting ¶
func GetApiInfoForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
func GetFAQForConsoleSetting ¶
func GetFAQForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
func GetUptimeKumaGroups ¶
func GetUptimeKumaGroups() []map[string]interface{}
func GetUptimeKumaGroupsForConsoleSetting ¶
func GetUptimeKumaGroupsForConsoleSetting(setting ConsoleSetting) []map[string]interface{}
func ValidateConsoleSettings ¶
Types ¶
type ConsoleSetting ¶
type ConsoleSetting struct {
ApiInfo string `json:"api_info"` // 控制台 API 信息 (JSON 数组字符串)
UptimeKumaGroups string `json:"uptime_kuma_groups"` // Uptime Kuma 分组配置 (JSON 数组字符串)
Announcements string `json:"announcements"` // 系统公告 (JSON 数组字符串)
FAQ string `json:"faq"` // 常见问题 (JSON 数组字符串)
ApiInfoEnabled bool `json:"api_info_enabled"` // 是否启用 API 信息面板
UptimeKumaEnabled bool `json:"uptime_kuma_enabled"` // 是否启用 Uptime Kuma 面板
AnnouncementsEnabled bool `json:"announcements_enabled"` // 是否启用系统公告面板
FAQEnabled bool `json:"faq_enabled"` // 是否启用常见问答面板
}
func GetConsoleSetting ¶
func GetConsoleSetting() *ConsoleSetting
GetConsoleSetting returns a detached copy of one immutable runtime generation. Mutating the returned value never updates the live setting.
Click to show internal directories.
Click to hide internal directories.