Documentation
¶
Overview ¶
Package api exposes the core over HTTP/JSON. Every request needs the API token, so a web page opened in the user's browser cannot drive the client through localhost.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type About ¶ added in v1.0.1
type About struct {
Name string `json:"name"`
Version string `json:"version"`
GoVer string `json:"goVersion"`
OS string `json:"os"` // "windows/amd64"
Engine string `json:"engine"` // e.g. "github.com/anacrolix/torrent v1.61.0", "" if unknown
}
About is the static "About" info of the running build, for the settings page.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP handler.
type UpdateStatus ¶ added in v1.0.6
type UpdateStatus struct {
Available bool `json:"available"`
Version string `json:"version,omitempty"`
Notes string `json:"notes,omitempty"`
URL string `json:"url,omitempty"` // the release's page, for a manual download
}
UpdateStatus is what the settings page shows about a newer release.