Documentation ¶
Index ¶
- Constants
- func GetExtHosts(ext string, rule string) (hosts, error)
- func GetExtIPs(ext string, rule string) (ips, error)
- func GetFirewallIps() (ips, error)
- func GetFirewallIpsByRule(rule string) (ips, error)
- func GetHosts() (hosts, error)
- func GetHostsByRule(rule string) (hosts, error)
- func GetHostsSlice(resultHosts hosts) []string
- func GetIPsSlice(resultIps ips) []string
- type SimplewallItem
- type SimplewallRoot
Constants ¶
View Source
const ( RULES_EXTRA = "extra" RULES_SPY = "spy" RULES_UPDATE = "update" TYPE_FIREWALL = "firewall" TYPE_HOSTS = "hosts" EXT_DNSCRYPT = "dnscrypt" EXT_ESET = "eset" EXT_KASPERSKY = "kaspersky" EXT_OPENWRT = "openwrt" EXT_P2P = "p2p" EXT_PROXIFIER = "proxifier" EXT_SIMPLEWALL = "simplewall" )
Systems, rules, types and exts constants
Variables ¶
This section is empty.
Functions ¶
func GetExtHosts ¶
GetExtHosts returns hosts for an external data filtered by rule
func GetFirewallIpsByRule ¶
GetFirewallIpsByRule returns ips filtered by rule
func GetHostsByRule ¶
GetHostsByRule returns hosts filtered by rule
func GetHostsSlice ¶
func GetHostsSlice(resultHosts hosts) []string
GetHostsSlice returns hosts as slice
Types ¶
type SimplewallItem ¶
type SimplewallItem struct {
// contains filtered or unexported fields
}
type SimplewallRoot ¶
type SimplewallRoot struct {
ItemList []SimplewallItem `xml:"item>"`
}
Click to show internal directories.
Click to hide internal directories.