config_api

package
v1.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HomeDirectory    = "HomeDirectory"
	WorkingDirectory = "WorkingDirectory"
	ProgramDirectory = "ProgramDirectory"
)

Variables

This section is empty.

Functions

func BeforeConfigUpdate

func BeforeConfigUpdate(oldConfig *config.Config, newConfig *config.Config)

BeforeConfigUpdate 根据配置的变化,判断是否需要打开浏览器重新扫描等

func DeleteConfig

func DeleteConfig(c echo.Context) error

DeleteConfig 删除配置文件

func GetConfig

func GetConfig(c echo.Context) error

GetConfig 获取json格式的当前配置,不做修改

func GetConfigStatus

func GetConfigStatus(c echo.Context) error

GetConfigStatus 获取json格式的当前配置

func GetConfigToml

func GetConfigToml(c echo.Context) error

GetConfigToml 下载服务器配置(toml),修改关键值后上传

func OpenBrowserIfNeeded added in v1.1.6

func OpenBrowserIfNeeded(oldConfig *config.Config, newConfig *config.Config)

func SaveConfigHandler

func SaveConfigHandler(c echo.Context) error

SaveConfigHandler 保存服务器配置到文件

func StartReScan

func StartReScan()

StartReScan 扫描并相应地更新数据库

func UpdateConfig

func UpdateConfig(c echo.Context) error

UpdateConfig 修改服务器配置(post json)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL