Documentation
¶
Overview ¶
SPDX-License-Identifier: GPL-2.0-only
Index ¶
Constants ¶
View Source
const ( StatusDisable = 0 StatusEnable = 1 )
View Source
const ( StatusEventUnread = 0 StatusEventRead = 1 )
Variables ¶
Functions ¶
func ClearPolicy ¶
func ClearPolicy() bool
func DeletePolicy ¶
Types ¶
type Policy ¶
type Policy struct {
ID int64 `json:"id"`
Priority int8 `json:"priority"`
Addr struct {
Src struct {
Begin string `json:"begin"`
End string `json:"end"`
} `json:"src"`
Dst struct {
Begin string `json:"begin"`
End string `json:"end"`
} `json:"dst"`
} `json:"addr"`
Protocol struct {
Begin uint8 `json:"begin"`
End uint8 `json:"end"`
} `json:"protocol"`
Port struct {
Src struct {
Begin uint16 `json:"begin"`
End uint16 `json:"end"`
} `json:"src"`
Dst struct {
Begin uint16 `json:"begin"`
End uint16 `json:"end"`
} `json:"dst"`
} `json:"port"`
Flags int32 `json:"flags"`
Response uint32 `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.