udpLimit.go 984 B

123456789101112131415161718192021
  1. package v1
  2. type UdpLimitRequest struct {
  3. QosPacketCount int `form:"qos_packet_count" json:"qos_packet_count"`
  4. QosPacketDuration string `form:"qos_packet_duration" json:"qos_packet_duration" default:"0s"`
  5. MaxConnCount int `form:"max_conn_count" json:"max_conn_count"`
  6. }
  7. type UdpLimitDeleteRequest struct {
  8. WafUdpLimitId int `json:"waf_udp_limit_id" form:"waf_udp_limit_id"`
  9. }
  10. type UdpLimitSendRequest struct {
  11. WafUdpLimitId int `json:"waf_udp_limit_id" form:"waf_udp_limit_id"`
  12. Tag string `json:"tag" form:"tag" binding:"required"`
  13. QosPacketCount int `form:"qos_packet_count" json:"qos_packet_count" default:"0"`
  14. QosPacketDuration string `form:"qos_packet_duration" json:"qos_packet_duration" default:"0s"`
  15. MaxConnCount int `form:"max_conn_count" json:"max_conn_count" default:"0"`
  16. RuleId int `json:"waf_common_limit_id" form:"waf_common_limit_id"`
  17. Comment string `form:"comment" json:"comment"`
  18. }