package
0.0.0-20160804173216-ec3c1f2cb59b
Repository: https://github.com/reangd/go-web-search.git
Documentation: pkg.go.dev
# Constants
ErrScanArgument - Scan argument is not array of bytes.
StateAnswerError - can not read body.
StateConnectError - can not connect to server.
StateDisabledByRobotsTxt - URL disabled in robots.txt.
StateDublicate - dublicate see "Origin" field for origin URL.
StateEncodingError - can not find or apply encoding (body not save).
StateErrorStatusCode - status code != 200.
StateExternal - after redirect - host is external (body not save).
StateNoFollow - found meta tag nofollow (body not save).
StateParseError - can not parse body or body not html (body not save).
StateSuccess - page without error.
StateUnsupportedFormat - MIME type != text/html.
# Structs
Compressed - field compressed by zlib.
Content - store page content Hash - hash of uncompressed content.
Host - host information.
Meta - meta information about processed URL Origin - link to origin document (for State == CtStateDublicate).
# Type aliases
State - current state of page.