Documentation ¶
Overview ¶
Package qurl implements a service to extract the contents of any web page returning the results as a JSON data structure.
This service exports all its functionality through an HTTP REST API and has been designed following the principles on microservices so it can be easily integrated in any existing infrastructure or platform.
In adition of this API reference, there is available also an accurated documentation for end users and developers in the following URL:
Index ¶
Constants ¶
const ( // DefaultServerAddress is the default hostname where the server is going to // be started and listening. DefaultServerAddress = "" // DefaultServerPort is the default port number where the server is going to // be started and listening. DefaultServerPort = "8080" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRequest ¶
type FakeRequest struct { ExpectedStatusCode int ExpectedBody string ExpectedResponseHeaders http.Header }
FakeRequest ...
type Request ¶
type Request struct { }
Request represents the call being made to retrieve the contents of an URL.
type Response ¶
type Response struct { URL string `json:"url"` Status int `json:"status"` Headers map[string][]string `json:"headers,omitempty"` Selectors map[string][]*element `json:"selectors,omitempty"` }
Response represents the result struct received after querying an URL. Contains information about the URL and the data retrieved after proessing the content.