Documentation
¶
Overview ¶
Package browser is the Browser module: web pages in windows, for the owner and the agent.
A window shows a page in a frame when the site allows it, and otherwise (or on request) in reader mode: the page as the server read it, words and links only. The agent reads pages on the server (browser_read), never through the owner's frame, so what it sees is the same whether a window is open or not, and a page's scripts never reach it.
A window's state lives in its args: url, history (a list of URLs) and at (the position in it), so back and forward survive a reload and a saved layout reopens the same pages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct {
Public bool `json:"public_only,omitempty"`
URL string `json:"url"`
FinalURL string `json:"final_url"`
Title string `json:"title"`
Text string `json:"text"`
Search bool `json:"search,omitempty"`
Query string `json:"query,omitempty"`
Results []Result `json:"results,omitempty"`
Links []Link `json:"links,omitempty"`
// Framable says whether the site lets another page show it in a frame.
Framable bool `json:"framable"`
Fetched string `json:"fetched"`
}
Page is a web page as the server read it: its words and its links, without its scripts.