Help us shape the future of Go! Take the 2026 Go Developer Survey

endpoint

package
v0.0.0-...-b66650a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 55 Imported by: 0

Documentation

Index

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 AddAuthEndpoints(mux *http.ServeMux)

func AddDashEndpoint

func AddDashEndpoint(mux *http.ServeMux)

func AddDebugEndpoints

func AddDebugEndpoints(mux *http.ServeMux)

func AddEndpoints

func AddEndpoints(mux *http.ServeMux)

func AddExperimentEndpoints

func AddExperimentEndpoints(mux *http.ServeMux)

func AddHealthEndpoints

func AddHealthEndpoints(mux *http.ServeMux)

func AddMaintenanceEndpoint

func AddMaintenanceEndpoint(mux *http.ServeMux)

func AddMetaEndpoints

func AddMetaEndpoints(mux *http.ServeMux)

func AddNewznabEndpoints

func AddNewznabEndpoints(mux *http.ServeMux)

func AddProxyEndpoints

func AddProxyEndpoints(mux *http.ServeMux)

func AddRootEndpoint

func AddRootEndpoint(mux *http.ServeMux)

func AddStoreEndpoints

func AddStoreEndpoints(mux *http.ServeMux)

func AddStremioEndpoints

func AddStremioEndpoints(mux *http.ServeMux)

func AddTorrentEndpoints

func AddTorrentEndpoints(mux *http.ServeMux)

func AddTorznabEndpoints

func AddTorznabEndpoints(mux *http.ServeMux)

func RequireStore

func RequireStore(next http.HandlerFunc) http.HandlerFunc

func StoreContext

func StoreContext(next http.HandlerFunc) http.HandlerFunc

Types

type AddMagnetPayload

type AddMagnetPayload struct {
	Magnet  string `json:"magnet"`
	Torrent string `json:"torrent"`
}

type AuthCallbackTemplateData

type AuthCallbackTemplateData struct {
	Title   string
	Version string
	Code    string
	State   string
	Error   string

	Provider string
}

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 HealthDebugDataIP struct {
	Client         string            `json:"client"`
	Exposed        map[string]string `json:"exposed"`
	Machine        string            `json:"machine"`
	Tunnel         map[string]string `json:"tunnel"`
	RequestHeaders map[string]string `json:"request_headers"`
}

type HealthDebugDataStore

type HealthDebugDataStore struct {
	Default string   `json:"default"`
	Names   []string `json:"names"`
}

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 RootTemplateData struct {
	Title       string                    `json:"-"`
	Description template.HTML             `json:"description"`
	Version     string                    `json:"-"`
	Addons      []rootTemplateDataAddon   `json:"-"`
	Sections    []rootTemplateDataSection `json:"sections"`
	IsPublic    bool                      `json:"-"`
	IsTrusted   bool                      `json:"-"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL