mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-09 07:05:38 +08:00
增加请求脚本审核机制
This commit is contained in:
@@ -29,3 +29,14 @@ func (this *HTTPRequestScriptsConfig) IsEmpty() bool {
|
||||
return (this.InitGroup == nil || this.InitGroup.IsEmpty()) &&
|
||||
(this.RequestGroup == nil || this.RequestGroup.IsEmpty())
|
||||
}
|
||||
|
||||
func (this *HTTPRequestScriptsConfig) AllGroups() []*ScriptGroupConfig {
|
||||
var result []*ScriptGroupConfig
|
||||
if this.InitGroup != nil {
|
||||
result = append(result, this.InitGroup)
|
||||
}
|
||||
if this.RequestGroup != nil {
|
||||
result = append(result, this.RequestGroup)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user