Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index holds lists of domains from different sources
func NewIndex ¶
NewIndex creates *Index with declared sources. Each source is identified by key. Keys is a list of arbitrary strings
func (*Index) GetAndUpdate ¶
GetAndUpdate makes a GET HTTP request to given url string, then uses response body to update the source
func (*Index) GetSaveAndUpdate ¶
GetSaveAndUpdate makes a GET HTTP request to given url string, then uses response body to update the source. Additionally, it writes response body to the file.
func (*Index) ReadAndUpdate ¶
ReadAndUpdate opens given JSON file and updates the source from it.
Click to show internal directories.
Click to hide internal directories.