Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(items []*SourceIsins, dbpath string, mode taskengine.Mode) error
Get retrieves the quotes specified by the SourceIsins object. The mode parameters specified the taskengine mode of execution. The results quotes are printed in json format. The quotes are also saved to the database, if the dbpath is given.
func Sources ¶
func Sources() []string
Sources returns a sorted list of the names of the avaliable quoteGetters.
func TorCheck ¶
TorCheck checks if a Tor connection is used, retrieving the "https://check.torproject.org" page. It returns:
- bool: true if Tor is used, false otherwise
- string: the message contained in the html page
- error: if the message cannot be determined
Types ¶
Click to show internal directories.
Click to hide internal directories.