Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { QueryInterval time.Duration // interval between query attempts MaxFailed int // maximum number of failed query attempts before removing address QueryFunction QueryFunction // function for querying servers OnRequestArchive func(string) // called to archive an address OnRequestRemove func(string) // called to remove an address OnRequestUpdate func(types.Server) // called to update an address }
Config contains parameters to tweak the scraper performance
type QueryFunction ¶
QueryFunction represents a function capable of retreiving server information via the server API
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
Scraper crawls through a list of server addresses and gathers information about them via the legacy query API, it then stores the results as standard Server objects, accessible via the API.
Click to show internal directories.
Click to hide internal directories.