Documentation
¶
Index ¶
- func AsRule(m *dbschema.NgingFirewallRuleStatic) driver.Rule
- func MatchRageLimit(rateLimit string) bool
- 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 MatchRageLimit ¶ added in v1.3.2
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.