Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2017 Changes in this version + var InitialAssetsSliceSize = 20 + func DownloadAsset(asset Downloadable, out io.Writer) (int64, error) + func DownloadAssetAsync(asset Downloadable, out io.Writer, c AsyncDownloadChannel) + type Asset struct + ID string + Type AssetType + URL *url.URL + func (at *Asset) AssetType() AssetType + func (at *Asset) Id() string + func (at *Asset) Url() *url.URL + type AssetType uint16 + const ImageAsset + const LinkAsset + const ScriptAsset + const StylesheetAsset + type Assetable interface + AssetType func() AssetType + Id func() string + Url func() *url.URL + type AsyncDownloadChannel chan *AsyncDownloadResult + type AsyncDownloadResult struct + Asset Downloadable + Error error + Size int64 + Writer io.Writer + type Attribute int + const FollowRedirects + const MetaRefreshHandling + const SendReferer + type AttributeMap map[Attribute]bool + type Browsable interface + AddRequestHeader func(name, value string) + Back func() bool + Body func() string + Bookmark func(name string) error + Click func(expr string) error + Dom func() *goquery.Selection + Download func(o io.Writer) (int64, error) + Find func(expr string) *goquery.Selection + Form func(expr string) (Submittable, error) + Forms func() []Submittable + Head func(url string) error + Images func() []*Image + Links func() []*Link + Open func(url string) error + OpenBookmark func(name string) error + OpenForm func(url string, data url.Values) error + Post func(url string, contentType string, body io.Reader) error + PostForm func(url string, data url.Values) error + PostMultipart func(u string, fields url.Values, files FileSet) error + Reload func() error + ResolveStringUrl func(u string) (string, error) + ResolveUrl func(u *url.URL) *url.URL + ResponseHeaders func() http.Header + Scripts func() []*Script + SetAttribute func(a Attribute, v bool) + SetAttributes func(a AttributeMap) + SetBookmarksJar func(bj jar.BookmarksJar) + SetCookieJar func(cj http.CookieJar) + SetHeadersJar func(h http.Header) + SetHistoryJar func(hj jar.History) + SetState func(sj *jar.State) + SetTransport func(rt http.RoundTripper) + SetUserAgent func(ua string) + SiteCookies func() []*http.Cookie + StatusCode func() int + Stylesheets func() []*Stylesheet + Title func() string + Url func() *url.URL + type Browser struct + func (bow *Browser) AddRequestHeader(name, value string) + func (bow *Browser) Back() bool + func (bow *Browser) Body() string + func (bow *Browser) Bookmark(name string) error + func (bow *Browser) Click(expr string) error + func (bow *Browser) DelRequestHeader(name string) + func (bow *Browser) Dom() *goquery.Selection + func (bow *Browser) Download(o io.Writer) (int64, error) + func (bow *Browser) Find(expr string) *goquery.Selection + func (bow *Browser) Form(expr string) (Submittable, error) + func (bow *Browser) Forms() []Submittable + func (bow *Browser) Head(u string) error + func (bow *Browser) Images() []*Image + func (bow *Browser) Links() []*Link + func (bow *Browser) Open(u string) error + func (bow *Browser) OpenBookmark(name string) error + func (bow *Browser) OpenForm(u string, data url.Values) error + func (bow *Browser) Post(u string, contentType string, body io.Reader) error + func (bow *Browser) PostForm(u string, data url.Values) error + func (bow *Browser) PostMultipart(u string, fields url.Values, files FileSet) error + func (bow *Browser) Reload() error + func (bow *Browser) ResolveStringUrl(u string) (string, error) + func (bow *Browser) ResolveUrl(u *url.URL) *url.URL + func (bow *Browser) ResponseHeaders() http.Header + func (bow *Browser) Scripts() []*Script + func (bow *Browser) SetAttribute(a Attribute, v bool) + func (bow *Browser) SetAttributes(a AttributeMap) + func (bow *Browser) SetBookmarksJar(bj jar.BookmarksJar) + func (bow *Browser) SetCookieJar(cj http.CookieJar) + func (bow *Browser) SetHeadersJar(h http.Header) + func (bow *Browser) SetHistoryJar(hj jar.History) + func (bow *Browser) SetState(sj *jar.State) + func (bow *Browser) SetTransport(rt http.RoundTripper) + func (bow *Browser) SetUserAgent(userAgent string) + func (bow *Browser) SiteCookies() []*http.Cookie + func (bow *Browser) StatusCode() int + func (bow *Browser) Stylesheets() []*Stylesheet + func (bow *Browser) Title() string + func (bow *Browser) Url() *url.URL + type Downloadable interface + Download func(out io.Writer) (int64, error) + DownloadAsync func(out io.Writer, ch AsyncDownloadChannel) + type DownloadableAsset struct + func (at *DownloadableAsset) Download(out io.Writer) (int64, error) + func (at *DownloadableAsset) DownloadAsync(out io.Writer, ch AsyncDownloadChannel) + type File struct + type FileSet map[string]*File + type Form struct + func NewForm(bow Browsable, s *goquery.Selection) *Form + func (f *Form) Action() string + func (f *Form) Click(button string) error + func (f *Form) ClickByValue(name, value string) error + func (f *Form) Dom() *goquery.Selection + func (f *Form) File(name string, fileName string, data io.Reader) error + func (f *Form) Input(name, value string) error + func (f *Form) Method() string + func (f *Form) Set(name, value string) error + func (f *Form) SetFile(name string, fileName string, data io.Reader) + func (f *Form) Submit() error + type Image struct + Alt string + Title string + func NewImageAsset(url *url.URL, id, alt, title string) *Image + type Link struct + Text string + func NewLinkAsset(u *url.URL, id, text string) *Link + type Script struct + Type string + func NewScriptAsset(url *url.URL, id, typ string) *Script + type Stylesheet struct + Media string + Type string + func NewStylesheetAsset(url *url.URL, id, media, typ string) *Stylesheet + type Submittable interface + Action func() string + Click func(button string) error + ClickByValue func(name, value string) error + Dom func() *goquery.Selection + File func(name string, fileName string, data io.Reader) error + Input func(name, value string) error + Method func() string + Set func(name, value string) error + SetFile func(name string, fileName string, data io.Reader) + Submit func() error