Documentation
¶
Index ¶
- Variables
- func AddAuthEndpoints(mux *http.ServeMux)
- func AddDashEndpoint(mux *http.ServeMux)
- func AddDebugEndpoints(mux *http.ServeMux)
- func AddEndpoints(mux *http.ServeMux)
- func AddExperimentEndpoints(mux *http.ServeMux)
- func AddHealthEndpoints(mux *http.ServeMux)
- func AddMaintenanceEndpoint(mux *http.ServeMux)
- func AddMetaEndpoints(mux *http.ServeMux)
- func AddNewznabEndpoints(mux *http.ServeMux)
- func AddProxyEndpoints(mux *http.ServeMux)
- func AddRootEndpoint(mux *http.ServeMux)
- func AddStoreEndpoints(mux *http.ServeMux)
- func AddStremioEndpoints(mux *http.ServeMux)
- func AddTorrentEndpoints(mux *http.ServeMux)
- func AddTorznabEndpoints(mux *http.ServeMux)
- func RequireStore(next http.HandlerFunc) http.HandlerFunc
- func StoreContext(next http.HandlerFunc) http.HandlerFunc
- type AddMagnetPayload
- type AuthCallbackTemplateData
- type GenerateLinkPayload
- type HealthData
- type HealthDebugData
- type HealthDebugDataIP
- type HealthDebugDataStore
- type HealthDebugDataUser
- type RecordTorrentsPayload
- type RootTemplateData
- type TrackMagnetData
- type TrackMagnetPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecuteAuthCallbackTemplate = func() func(data *AuthCallbackTemplateData) (bytes.Buffer, error) { tmpl := template.Must(template.New("auth_callback.html").Parse(authCallbackTemplateBlob)) return func(data *AuthCallbackTemplateData) (bytes.Buffer, error) { var buf bytes.Buffer err := tmpl.Execute(&buf, data) return buf, err } }()
View Source
var ExecuteTemplate = func() func(data *RootTemplateData) (bytes.Buffer, error) { tmpl := template.Must(template.New("root.html").Parse(templateBlob)) return func(data *RootTemplateData) (bytes.Buffer, error) { var buf bytes.Buffer err := tmpl.Execute(&buf, data) return buf, err } }()
View Source
var GetQueryInt = shared.GetQueryInt
View Source
var SendError = shared.SendError
View Source
var SendHTML = shared.SendHTML
View Source
var SendJSON = shared.SendJSON
View Source
var SendResponse = shared.SendResponse
Functions ¶
func AddAuthEndpoints ¶
func AddDashEndpoint ¶
func AddDebugEndpoints ¶
func AddEndpoints ¶
func AddExperimentEndpoints ¶
func AddHealthEndpoints ¶
func AddMaintenanceEndpoint ¶
func AddMetaEndpoints ¶
func AddNewznabEndpoints ¶
func AddProxyEndpoints ¶
func AddRootEndpoint ¶
func AddStoreEndpoints ¶
func AddStremioEndpoints ¶
func AddTorrentEndpoints ¶
func AddTorznabEndpoints ¶
func RequireStore ¶
func RequireStore(next http.HandlerFunc) http.HandlerFunc
func StoreContext ¶
func StoreContext(next http.HandlerFunc) http.HandlerFunc
Types ¶
type AddMagnetPayload ¶
type GenerateLinkPayload ¶
type GenerateLinkPayload struct {
Link string `json:"link"`
}
type HealthData ¶
type HealthData struct {
Status string `json:"status"`
}
type HealthDebugData ¶
type HealthDebugData struct {
Time string `json:"time"`
Version string `json:"version"`
User *HealthDebugDataUser `json:"user,omitempty"`
IP *HealthDebugDataIP `json:"ip,omitempty"`
}
type HealthDebugDataIP ¶
type HealthDebugDataStore ¶
type HealthDebugDataUser ¶
type HealthDebugDataUser struct {
Name string `json:"name"`
Store HealthDebugDataStore `json:"store"`
}
type RecordTorrentsPayload ¶
type RecordTorrentsPayload struct {
Items []torrent_info.TorrentItem `json:"items"`
}
type RootTemplateData ¶
type TrackMagnetData ¶
type TrackMagnetData struct {
}
type TrackMagnetPayload ¶
type TrackMagnetPayload struct {
TorrentInfoCategory torrent_info.TorrentInfoCategory `json:"tinfo_category"`
TorrentInfos []buddy.TorrentInfoInput `json:"tinfos"`
Cached map[string]bool `json:"cached"`
}
Click to show internal directories.
Click to hide internal directories.