model

package
v1.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsRule added in v1.3.2

func MatchConnLimit added in v1.3.7

func MatchConnLimit(connLimit string) bool

func MatchRateLimit added in v1.3.7

func MatchRateLimit(rateLimit string) bool

func RemovePrefixNeq added in v1.3.7

func RemovePrefixNeq(s string) string

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) Edit

func (r *RuleDynamic) Edit(mw func(db.Result) db.Result, args ...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 (*RuleStatic) Edit

func (r *RuleStatic) Edit(mw func(db.Result) db.Result, args ...interface{}) error

func (*RuleStatic) ListPage

func (r *RuleStatic) ListPage(cond *db.Compounds, sorts ...interface{}) ([]*dbschema.NgingFirewallRuleStatic, error)

func (*RuleStatic) NextRow added in v1.3.5

func (r *RuleStatic) NextRow(table string, chain string, ipVer string, position int, id uint, excludeOther ...uint) (*dbschema.NgingFirewallRuleStatic, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL