Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2023 v0.0.1 Sep 30, 2023 Changes in this version + type DefaultStorage struct + func NewDefaultStorage(listID int, rewrites []*Item) (s *DefaultStorage, err error) + func (s *DefaultStorage) Add(item *Item) (err error) + func (s *DefaultStorage) List() (items []*Item) + func (s *DefaultStorage) MatchRequest(dReq *urlfilter.DNSRequest) (rws []*rules.DNSRewrite) + func (s *DefaultStorage) Remove(item *Item) (err error) + type Item struct + Answer string + Domain string + type Storage interface + Add func(item *Item) (err error) + List func() (items []*Item) + MatchRequest func(dReq *urlfilter.DNSRequest) (rws []*rules.DNSRewrite) + Remove func(item *Item) (err error)