mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
Add rule id's
This commit is contained in:
parent
7b0474e4eb
commit
5e49f9ba2e
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ package definitions
|
||||||
import "encoding/json"
|
import "encoding/json"
|
||||||
|
|
||||||
type Rule struct {
|
type Rule struct {
|
||||||
|
ID uint64 `json:"id" validate:"required,gt=0"`
|
||||||
Name string `json:"name" validate:"required"`
|
Name string `json:"name" validate:"required"`
|
||||||
Match Match `json:"match" validate:"required,dive"`
|
Match Match `json:"match" validate:"required,dive"`
|
||||||
Comment string `json:"comment,omitempty"`
|
Comment string `json:"comment,omitempty"`
|
||||||
|
|
Loading…
Add table
Reference in a new issue