Documentation ¶
Index ¶
Constants ¶
View Source
const USER_AGENT = "" /* 169-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func FindRandomInstance ¶
func FindRandomInstance(fetchedInstances *map[string]Instance, gradesEnabled []string, blacklist []string, torEnabled bool, torOnlyEnabled bool, minVersion version.Version, customInstances []string) (*string, bool)
Finds a random instance between the ones fetched according to user's choosen options.
func TorListening ¶
Checks whether tor is listening on :9050 or :9150.
Types ¶
type Instance ¶
type Instance struct { Comments []string `json:"comments"` NetworkType *string `json:"network_type"` Error *string `json:"error,omit_empty"` Version *string `json:"version"` Html *struct { Resources struct{} `json:"ressources"` Grade string `json:"grade"` } `json:"html,omit_empty"` }
Struct representing an instance in the data fetched.
type InstancesData ¶
The data fetched from searx.space.
func InstancesNew ¶
func InstancesNew(data io.ReadCloser) (*InstancesData, error)
Creates an InstancesData from the fetched JSON data.
Click to show internal directories.
Click to hide internal directories.