github.com/TeaOSLab/EdgeNode@v1.3.8/internal/waf/action_log.go (about) 1 package waf 2 3 import ( 4 "github.com/TeaOSLab/EdgeNode/internal/waf/requests" 5 "net/http" 6 ) 7 8 type LogAction struct { 9 BaseAction 10 } 11 12 func (this *LogAction) Init(waf *WAF) error { 13 return nil 14 } 15 16 func (this *LogAction) Code() string { 17 return ActionLog 18 } 19 20 func (this *LogAction) IsAttack() bool { 21 return false 22 } 23 24 func (this *LogAction) WillChange() bool { 25 return false 26 } 27 28 func (this *LogAction) Perform(waf *WAF, group *RuleGroup, set *RuleSet, request requests.Request, writer http.ResponseWriter) PerformResult { 29 return PerformResult{ 30 ContinueRequest: true, 31 } 32 }