Documentation
¶
Index ¶
- Constants
- Variables
- func AddBlacklist(v string) []string
- func AddQuery(domain, clientip string, t time.Time, status string, isblocked string)
- func DeleteBlacklist(v string) []string
- func GetDomainIPv4(domain string) string
- func GetDomainIPv6(domain string) string
- func IsBlocked(domain string) bool
- func ReadSliceFrom(table sqlTable) []string
- func ReverseSlice(a []string) []string
- func SetDomainIPv4(domain string, ipv4 string, ttl time.Duration)
- func SetDomainIPv6(domain string, ipv6 string, ttl time.Duration)
- func UpdateBlacklist(new string, old string) []string
- type Query
Constants ¶
View Source
const ( DIR = "/etc/powerful_dns" //db name DOMAINS = "domains.db" )
Variables ¶
Functions ¶
func AddBlacklist ¶
func AddQuery ¶
TODO this function is called in go routine. meaning, var last_time is not accurately, thus organizer_domain does not make sense TODO employ better organizer: API domain is interfering Ideas - Special domain list - White listed domain -> organizer - Frequest domain that often requested first -> API???
func DeleteBlacklist ¶
func GetDomainIPv4 ¶
func GetDomainIPv6 ¶
func ReadSliceFrom ¶
func ReadSliceFrom(table sqlTable) []string
ReadSliceFrom reads single string from table and return []string
func ReverseSlice ¶
func UpdateBlacklist ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.