Documentation
¶
Index ¶
- Variables
- func AddHealthEndpoints(mux *http.ServeMux)
- func AddProxyEndpoints(mux *http.ServeMux)
- func AddRootEndpoint(mux *http.ServeMux)
- func AddStoreEndpoints(mux *http.ServeMux)
- func AddStremioEndpoints(mux *http.ServeMux)
- func ProxyAuthContext(next http.HandlerFunc) http.HandlerFunc
- func ProxyAuthRequired(next http.HandlerFunc) http.HandlerFunc
- func StoreContext(next http.HandlerFunc) http.HandlerFunc
- func StoreRequired(next http.HandlerFunc) http.HandlerFunc
- type AddMagnetPayload
- type GenerateLinkPayload
- type HealthData
- type HealthDebugData
- type HealthDebugDataIP
- type HealthDebugDataStore
- type HealthDebugDataUser
- type MiddlewareFunc
- type RootTemplateData
- type TrackMagnetData
- type TrackMagnetPayload
Constants ¶
This section is empty.
Variables ¶
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 SendResponse = shared.SendResponse
Functions ¶
func AddHealthEndpoints ¶
func AddProxyEndpoints ¶
func AddRootEndpoint ¶
func AddStoreEndpoints ¶
func AddStremioEndpoints ¶
func ProxyAuthContext ¶
func ProxyAuthContext(next http.HandlerFunc) http.HandlerFunc
func ProxyAuthRequired ¶
func ProxyAuthRequired(next http.HandlerFunc) http.HandlerFunc
func StoreContext ¶
func StoreContext(next http.HandlerFunc) http.HandlerFunc
func StoreRequired ¶
func StoreRequired(next http.HandlerFunc) http.HandlerFunc
Types ¶
type AddMagnetPayload ¶
type AddMagnetPayload struct {
Magnet string `json:"magnet"`
}
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 MiddlewareFunc ¶
type MiddlewareFunc func(http.HandlerFunc) http.HandlerFunc
func Middleware ¶
func Middleware(middlewares ...MiddlewareFunc) MiddlewareFunc
type RootTemplateData ¶
type TrackMagnetData ¶
type TrackMagnetData struct { }
type TrackMagnetPayload ¶
type TrackMagnetPayload struct { Hash string `json:"hash"` Files []store.MagnetFile `json:"files"` IsMiss bool `json:"is_miss"` SId string `json:"sid"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.