MCPcopy Create free account
hub / github.com/eventure/hide.client.linux / String

Method String

rest/filter.go:39–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (f *Filter) String() ( pretty string ) {
40 if f.ForceDns { pretty += ", forceDns" }
41 if f.Ads { pretty += ", ads" }
42 if f.Trackers { pretty += ", trackers" }
43 if f.Malware { pretty += ", malware" }
44 if f.SafeSearch { pretty += ", safe search" }
45 if f.PG > 0 { pretty += ", pg-" + strconv.Itoa( f.PG ) }
46 if f.Malicious { pretty += ", malicious" }
47 if len(f.Risk) > 0 { pretty += ", risk=" + strings.Join( f.Risk, "," ) }
48 if len(f.Illegal) > 0 { pretty += ", illegal=" + strings.Join( f.Illegal, "," ) }
49 if len(f.Whitelist) > 0 { pretty += ", whitelist=" + strings.Join( f.Whitelist, "," ) }
50 if len(f.Blacklist) > 0 { pretty += ", blacklist=" + strings.Join( f.Blacklist, "," ) }
51 if len(f.Categories) > 0 { pretty += ", categories=" + strings.Join( f.Categories, "," ) }
52 pretty = strings.TrimPrefix( pretty, ", " )
53 return
54}
55
56func (f *Filter) Check() error {
57 switch f.PG {

Callers 15

FilterMethod · 0.80
configurationMethod · 0.80
dnsSetMethod · 0.80
routeStringFunction · 0.80
ipAddrsAddMethod · 0.80
ipAddrsDelMethod · 0.80
wgAddPeerMethod · 0.80
wgRemovePeerMethod · 0.80
ParallelDoHMethod · 0.80
ResolveTypeMethod · 0.80
printSliceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected