Documentation
¶
Index ¶
- Variables
- func ActivateProtection(c *gin.Context)
- func AddIpWhiteList(c *gin.Context)
- func AddRule(c *gin.Context)
- func AddRuleIpList(c *gin.Context)
- func AddSite(c *gin.Context)
- func CaddyAPI(r *gin.Engine, randomString string)
- func DeactivateProtection(c *gin.Context)
- func DelIpWhiteList(c *gin.Context)
- func DelRule(c *gin.Context)
- func DelRuleIpList(c *gin.Context)
- func DelSite(c *gin.Context)
- func GetAndSetConfFile() string
- func GetIpList(c *gin.Context)
- func GetProtectList(c *gin.Context)
- func GetProtectType(c *gin.Context)
- func GetRuleIpList(c *gin.Context)
- func GetRulesList(c *gin.Context)
- func GetSiteList(c *gin.Context)
- func ReloadCaddy(c *gin.Context) error
- func RunCaddy(c *gin.Context)
- func StopCaddy(c *gin.Context)
- func UpdateProtection(c *gin.Context)
- type AddRules
- type AllRules
- type AutoHttps
- type IpList
- type Server
- type SiteName
Constants ¶
This section is empty.
Variables ¶
View Source
var CaddyUrl = "http://localhost:2025/"
Functions ¶
func GetProtectList ¶
GetProtectList 获取防护集合 读取配置文件中以 Include 开头的规则
Types ¶
Click to show internal directories.
Click to hide internal directories.