config_api

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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 SaveConfigHandler

func SaveConfigHandler(c echo.Context) error

SaveConfigHandler 保存服务器配置到文件

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