data

package
v0.0.0-...-7df0ded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func GetExtHosts(ext string, rule string) (hosts, error)

GetExtHosts returns hosts for an external data filtered by rule

func GetExtIPs

func GetExtIPs(ext string, rule string) (ips, error)

GetExtIPs returns IPs for an external data filtered by rule

func GetFirewallIps

func GetFirewallIps() (ips, error)

GetFirewallIps returns ips

func GetFirewallIpsByRule

func GetFirewallIpsByRule(rule string) (ips, error)

GetFirewallIpsByRule returns ips filtered by rule

func GetHosts

func GetHosts() (hosts, error)

GetHosts returns hosts

func GetHostsByRule

func GetHostsByRule(rule string) (hosts, error)

GetHostsByRule returns hosts filtered by rule

func GetHostsSlice

func GetHostsSlice(resultHosts hosts) []string

GetHostsSlice returns hosts as slice

func GetIPsSlice

func GetIPsSlice(resultIps ips) []string

GetIPsSlice returns IPs as slice

Types

type SimplewallItem

type SimplewallItem struct {
	// contains filtered or unexported fields
}

type SimplewallRoot

type SimplewallRoot struct {
	ItemList []SimplewallItem `xml:"item>"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL