caddy

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(path string, config any) error

CreateConfig 创建新对象;插入到数组

func DeleteConfig

func DeleteConfig(path string) error

DeleteConfig 删除指定路径的值

func GetConfig

func GetConfig(path string) (any, error)

GetConfig 导出指定路径的配置

func SetConfig

func SetConfig(path string, config any) error

SetConfig 设置或替换对象;向数组追加

func StartDaemon

func StartDaemon(ctx context.Context)

StartDaemon 启动守护进程,定期检查Caddy状态并在需要时重启

func UpdateConfig

func UpdateConfig(path string, config any) error

UpdateConfig 替换现有的对象或数组元素

Types

This section is empty.

Jump to

Keyboard shortcuts

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