common

package
v3.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package common 承载各应用共用的 HTTP 处理逻辑

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(w http.ResponseWriter, r *http.Request, path string, perm os.FileMode, unit string)

SaveConfig 绑定请求后写入配置文件并重启对应服务

func ServeConfig

func ServeConfig(w http.ResponseWriter, path string)

ServeConfig 返回配置文件原始内容

func WriteConfig added in v3.3.6

func WriteConfig(w http.ResponseWriter, r *http.Request, path, content string, perm os.FileMode, unit string)

WriteConfig 写入配置文件并重启对应服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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