Documentation ¶
Index ¶
- func AsRule(m *dbschema.NgingFirewallRuleStatic) driver.Rule
- func MatchConnLimit(connLimit string) bool
- func MatchRateLimit(rateLimit string) bool
- func RemovePrefixNeq(s string) string
- type RuleDynamic
- func (r *RuleDynamic) Add() (interface{}, error)
- func (r *RuleDynamic) Edit(mw func(db.Result) db.Result, args ...interface{}) error
- func (r *RuleDynamic) ExistsAvailable() (bool, error)
- func (r *RuleDynamic) ListPage(cond *db.Compounds, sorts ...interface{}) ([]*dbschema.NgingFirewallRuleDynamic, error)
- type RuleStatic
- func (r *RuleStatic) Add() (interface{}, error)
- func (r *RuleStatic) AsRule(row ...*dbschema.NgingFirewallRuleStatic) driver.Rule
- func (r *RuleStatic) Edit(mw func(db.Result) db.Result, args ...interface{}) error
- func (r *RuleStatic) ListPage(cond *db.Compounds, sorts ...interface{}) ([]*dbschema.NgingFirewallRuleStatic, error)
- func (r *RuleStatic) NextRow(table string, chain string, ipVer string, position int, id uint, ...) (*dbschema.NgingFirewallRuleStatic, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchConnLimit ¶ added in v1.3.7
func MatchRateLimit ¶ added in v1.3.7
func RemovePrefixNeq ¶ added in v1.3.7
Types ¶
type RuleDynamic ¶
type RuleDynamic struct {
*dbschema.NgingFirewallRuleDynamic
}
func NewRuleDynamic ¶
func NewRuleDynamic(ctx echo.Context) *RuleDynamic
func (*RuleDynamic) Add ¶
func (r *RuleDynamic) Add() (interface{}, error)
func (*RuleDynamic) ExistsAvailable ¶ added in v1.3.2
func (r *RuleDynamic) ExistsAvailable() (bool, error)
func (*RuleDynamic) ListPage ¶
func (r *RuleDynamic) ListPage(cond *db.Compounds, sorts ...interface{}) ([]*dbschema.NgingFirewallRuleDynamic, error)
type RuleStatic ¶
type RuleStatic struct {
*dbschema.NgingFirewallRuleStatic
}
func NewRuleStatic ¶
func NewRuleStatic(ctx echo.Context) *RuleStatic
func (*RuleStatic) Add ¶
func (r *RuleStatic) Add() (interface{}, error)
func (*RuleStatic) AsRule ¶ added in v1.1.0
func (r *RuleStatic) AsRule(row ...*dbschema.NgingFirewallRuleStatic) driver.Rule
func (*RuleStatic) ListPage ¶
func (r *RuleStatic) ListPage(cond *db.Compounds, sorts ...interface{}) ([]*dbschema.NgingFirewallRuleStatic, error)
Click to show internal directories.
Click to hide internal directories.