rulemodel

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id int64) error

func Insert

func Insert(rule *Rule) error

Types

type Rule

type Rule struct {
	ID        int64 `db:"id"`
	Iface     string
	Port      int
	Dest      string
	Comment   string
	CreatedAt time.Time `db:"created_at"`
}

func Get

func Get(id int64) (*Rule, error)

func List

func List() ([]*Rule, error)

Jump to

Keyboard shortcuts

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