Documentation
¶
Overview ¶
Package dsl ----------------------------- @author : EndlessShw @time : 2025/9/17 17:46 @Description : -------------------------------------------
Package dsl ----------------------------- @author : EndlessShw @time : 2025/9/17 11:26 @Description : dsl 的环境模块 -------------------------------------------
Package dsl ----------------------------- @author : EndlessShw @time : 2025/9/17 21:58 @Description : 在 DSL 的 expr.Run 上做了封装 -------------------------------------------
Package dsl ----------------------------- @author : EndlessShw @time : 2025/10/15 15:07 @Description : DSL 的工具类 -------------------------------------------
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
// Threat 表示当前 Env 对应的威胁种类
Threat threat.Threat
// RequestInfo 存放一次请求的相关信息,主要包括 URI、Headers、Body、Method 和 IP 五个部分,然后还有一个 ALL
RequestInfo map[string]any
// contains filtered or unexported fields
}
Env 为 DSL 模块提供环境,一个实例对应一个 Env
func (*Env) GetRequestValue ¶
GetRequestValue 从 Env(本质信息源来自当前请求)中获取请求环境