Documentation
¶
Index ¶
- Variables
- func GetRuleIds() ([]string, error)
- type DnsMap
- func (d DnsMap) ExchangeContext(_ context.Context, r *D.Msg) (*D.Msg, error)
- func (d DnsMap) GetIp() (net.IP, error)
- func (d DnsMap) GetPolicy() constants.Policy
- func (d DnsMap) Match(value string) bool
- func (d DnsMap) Type() constants.RuleType
- func (d DnsMap) Valid() bool
- func (d DnsMap) Value() string
- type Domain
- type Engine
- type IpCidr
- type Process
- type Rule
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BuiltInProxyRule, _ = newBuiltIn("*", constants.PolicyProxy)
BuiltInRejectRule, _ = newBuiltIn("*", constants.PolicyReject)
)
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func GetRuleIds ¶
Types ¶
type DnsMap ¶ added in v1.32.2
type DnsMap struct {
RuleType constants.RuleType `json:"ruleType"`
Payload string `json:"payload"`
Policy constants.Policy `json:"policy"`
// contains filtered or unexported fields
}
func NewDnsMapRule ¶ added in v1.32.2
func (DnsMap) ExchangeContext ¶ added in v1.32.2
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 ¶
type Process struct {
RuleType constants.RuleType `json:"ruleType"`
Payload string `json:"payload"`
Policy constants.Policy `json:"policy"`
}
func NewProcessRule ¶
Click to show internal directories.
Click to hide internal directories.