Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BuiltInProxyRule, _ = newBuiltIn("*", constants.PolicyProxy)
BuiltInDirectRule, _ = newBuiltIn("*", constants.PolicyDirect)
BuiltInRejectRule, _ = newBuiltIn("*", constants.PolicyReject)
)
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func GetRuleIds ¶
Types ¶
type Domain ¶
type Domain struct { RuleType constants.RuleType `json:"ruleType"` Payload string `json:"payload"` Policy constants.Policy `json:"policy"` }
func NewDomainRule ¶
type IpCidr ¶
type Process ¶ added in v1.7.0
type Process struct { RuleType constants.RuleType `json:"ruleType"` Payload string `json:"payload"` Policy constants.Policy `json:"policy"` }
func NewProcessRule ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.