github.com/TeaOSLab/EdgeNode@v1.3.8/internal/waf/action_tag.go (about)

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