MCPcopy
hub / github.com/safing/portmaster / Query

Method Query

service/network/database.go:110–119  ·  view source on GitHub ↗

Query returns a an iterator for the supplied query.

(q *query.Query, local, internal bool)

Source from the content-addressed store, hash-verified

108
109// Query returns a an iterator for the supplied query.
110func (s *StorageInterface) Query(q *query.Query, local, internal bool) (*iterator.Iterator, error) {
111 it := iterator.New()
112
113 module.mgr.Go("connection query", func(_ *mgr.WorkerCtx) error {
114 s.processQuery(q, it)
115 return nil
116 })
117
118 return it, nil
119}
120
121func (s *StorageInterface) processQuery(q *query.Query, it *iterator.Iterator) {
122 var matches bool

Callers

nothing calls this directly

Calls 3

processQueryMethod · 0.95
NewFunction · 0.92
GoMethod · 0.45

Tested by

no test coverage detected