Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver struct { *http.Client // Cookie string for setting cookies in requests. Cookie string // contains filtered or unexported fields }
Archiver represents an archiver that can be used to submit and search for archived versions of web pages on archive.today.
func NewArchiver ¶ added in v1.4.0
NewArchiver returns a Archiver struct with the specified HTTP client and Tor network client. It's the responsibility of the caller to call CloseTor when it is no longer needed.
func (*Archiver) CloseTor ¶ added in v1.4.0
func (arc *Archiver) CloseTor()
CloseTor closes the Tor client if it exists.
func (*Archiver) Do ¶ added in v1.4.0
Do implements the http.Do method to execute an HTTP request using the embedded HTTP client or the Tor client as a fallback if the primary client fails to execute the request.
Click to show internal directories.
Click to hide internal directories.