model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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