Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
docs
|
|
|
swagger
Package swagger Code generated by swaggo/swag.
|
Package swagger Code generated by swaggo/swag. |
|
handlers
|
|
|
api
Package api exposes resources, the user's library, Vault and profile over a documented JSON HTTP API for paid accounts.
|
Package api exposes resources, the user's library, Vault and profile over a documented JSON HTTP API for paid accounts. |
|
device
Package device serves the human half of the device authorization flow: the page where a signed-in user types (or arrives with) the short code a CLI or TV showed, sees what is being granted, and confirms.
|
Package device serves the human half of the device authorization flow: the page where a signed-in user types (or arrives with) the short code a CLI or TV showed, sees what is being granted, and confirms. |
|
discover_ai
Package discover_ai exposes the AI recommendations backend to the Discover Preact app.
|
Package discover_ai exposes the AI recommendations backend to the Discover Preact app. |
|
discover_watchlist
Package discover_watchlist exposes per-user "watch later" intent for the Discover Preact app.
|
Package discover_watchlist exposes per-user "watch later" intent for the Discover Preact app. |
|
notifications
Package notifications renders the in-app notification feed: the list page behind the navbar bell, and the action that clears its unread count.
|
Package notifications renders the in-app notification feed: the list page behind the navbar bell, and the action that clears its unread count. |
|
release_subscription
Package release_subscription exposes content subscriptions over HTTP.
|
Package release_subscription exposes content subscriptions over HTTP. |
|
trial
Package trial serves /trial, the one link to the promo plan's free trial.
|
Package trial serves /trial, the one link to the promo plan's free trial. |
|
upload
Package upload serves the routes of an account's own uploads.
|
Package upload serves the routes of an account's own uploads. |
|
ai_enrich
Package ai_enrich holds DB models for the AI enrichment fallback.
|
Package ai_enrich holds DB models for the AI enrichment fallback. |
|
pgtest
Package pgtest starts a disposable Postgres for tests whose risk lives in the SQL actually sent to a real server (a window-function boundary, NULL against '{}', what go-pg writes for a nil value), which a stub cannot catch.
|
Package pgtest starts a disposable Postgres for tests whose risk lives in the SQL actually sent to a real server (a window-function boundary, NULL against '{}', what go-pg writes for a nil value), which a stub cannot catch. |
|
services
|
|
|
adminauth
Package adminauth owns the single-administrator password used when the instance runs without SuperTokens (self-hosted).
|
Package adminauth owns the single-administrator password used when the instance runs without SuperTokens (self-hosted). |
|
ai_client
Package ai_client shares AI provider selection and SDK adapters across Discover recommendations and metadata enrichment.
|
Package ai_client shares AI provider selection and SDK adapters across Discover recommendations and metadata enrichment. |
|
data_export
Package data_export implements the GDPR Art.
|
Package data_export implements the GDPR Art. |
|
egress
Package egress holds the one rule for outbound HTTP that carries a destination chosen by a user.
|
Package egress holds the one rule for outbound HTTP that carries a destination chosen by a user. |
|
genre
Package genre is the site's one genre vocabulary: a fixed list of slugs and the TMDB genre ids they are derived from.
|
Package genre is the site's one genre vocabulary: a fixed list of slugs and the TMDB genre ids they are derived from. |
|
libapi
Package libapi holds what the JSON API needs before any endpoint runs: where it is mounted, how a request's API key becomes an authenticated account, and the shapes of the account-scoped payloads (library, vault, profile).
|
Package libapi holds what the JSON API needs before any endpoint runs: where it is mounted, how a request's API key becomes an authenticated account, and the shapes of the account-scoped payloads (library, vault, profile). |
|
libfs
Package libfs implements the user's library as a virtual filesystem (services/vfs.FileSystem).
|
Package libfs implements the user's library as a virtual filesystem (services/vfs.FileSystem). |
|
memwatch
Package memwatch captures pprof profiles at the moment of an abnormal heap spike.
|
Package memwatch captures pprof profiles at the moment of an abnormal heap spike. |
|
metrics
Package metrics holds the service's Prometheus instrumentation.
|
Package metrics holds the service's Prometheus instrumentation. |
|
metrics/metricstest
Package metricstest reads the default Prometheus registry for tests of the code that reports into it (the router's recovery, the job runner), which cannot be handed a private registry the way the metrics package's own tests are.
|
Package metricstest reads the default Prometheus registry for tests of the code that reports into it (the router's recovery, the job runner), which cannot be handed a private registry the way the metrics package's own tests are. |
|
next_item
Package next_item answers one question: the viewer finished this file -- what plays next? It is pure: the caller brings the episode rows and the directory listing, and gets a pick or nil.
|
Package next_item answers one question: the viewer finished this file -- what plays next? It is pure: the caller brings the episode rows and the directory listing, and gets a pick or nil. |
|
offer
Package offer turns the storefront catalog into the offers the app shows: which plan an upsell sells, how fast it downloads, whether it starts with a free trial and where the checkout is.
|
Package offer turns the storefront catalog into the offers the app shows: which plan an upsell sells, how fast it downloads, whether it starts with a free trial and where the checkout is. |
|
offer/offertest
Package offertest reads the calls to action out of a rendered page, for the render tests of the surfaces that sell the promo plan: a button that starts the trial must link to /trial with its surface (offer.TrialURL), every other one must keep its own link.
|
Package offertest reads the calls to action out of a rendered page, for the render tests of the surfaces that sell the promo plan: a button that starts the trial must link to /trial with its surface (offer.TrialURL), every other one must keep its own link. |
|
onboarding
Package onboarding builds the activation checklist shown to freshly registered users on the home page.
|
Package onboarding builds the activation checklist shown to freshly registered users on the home page. |
|
pagination
Package pagination builds the page-link model for listing views.
|
Package pagination builds the page-link model for listing views. |
|
poster_resolver
Package poster_resolver picks the best available source image for a torrent resource and exposes it through one in-process cached entry point.
|
Package poster_resolver picks the best available source image for a torrent resource and exposes it through one in-process cached entry point. |
|
private_torrent
Package private_torrent tells a private torrent (BEP 27, private=1 in the info dict) and counts the ones that come into the store through web-ui.
|
Package private_torrent tells a private torrent (BEP 27, private=1 in the info dict) and counts the ones that come into the store through web-ui. |
|
ratemeter
Package ratemeter turns a monotonically growing byte counter sampled at irregular moments into a smoothed bytes-per-second figure.
|
Package ratemeter turns a monotonically growing byte counter sampled at irregular moments into a smoothed bytes-per-second figure. |
|
recommendations
Package recommendations implements an AI-backed movie recommender that powers the Discover page.
|
Package recommendations implements an AI-backed movie recommender that powers the Discover page. |
|
release_subscription
Package release_subscription owns what a subscription is: who may have one, on what, and what has to be true before a row is written.
|
Package release_subscription owns what a subscription is: who may have one, on what, and what has to be true before a row is written. |
|
s3
Package s3 serves the shared library filesystem (services/libfs) over the S3 REST API, so users can point rclone, the aws CLI, Cyberduck, s3fs or any other S3 client at their library.
|
Package s3 serves the shared library filesystem (services/libfs) over the S3 REST API, so users can point rclone, the aws CLI, Cyberduck, s3fs or any other S3 client at their library. |
|
statusview
Package statusview is the presentation of a torrent's transfer status on the resource page: the chain "swarm ▸ cache ▸ you" while something moves (only its participants), the badge the page had before the chain while nothing does, the piece bar under either, and the hint or the plan box under that (docs/transfer_status.html renders every state with the key Build returns for it; the design as approved: transfer_status.approved.html).
|
Package statusview is the presentation of a torrent's transfer status on the resource page: the chain "swarm ▸ cache ▸ you" while something moves (only its participants), the badge the page had before the chain while nothing does, the piece bar under either, and the hint or the plan box under that (docs/transfer_status.html renders every state with the key Build returns for it; the design as approved: transfer_status.approved.html). |
|
thumbnail
Package thumbnail generates a per-resource preview image during enrichment for torrents that have no IMDb-matched poster.
|
Package thumbnail generates a per-resource preview image during enrichment for torrents that have no IMDb-matched poster. |
|
thumbnail/thumbtest
Package thumbtest is an in-memory S3 for tests of thumbnails and their renders.
|
Package thumbtest is an in-memory S3 for tests of thumbnails and their renders. |
|
tracksession
Package tracksession keeps the per-file track choices from outgrowing the session.
|
Package tracksession keeps the per-file track choices from outgrowing the session. |
|
transcodercaps
Package transcodercaps answers one question for the pages that must not promise what the transcoder will not do: does content-transcoder hand HEVC to the player as it is (HEVC passthrough)?
|
Package transcodercaps answers one question for the pages that must not promise what the transcoder will not do: does content-transcoder hand HEVC to the player as it is (HEVC passthrough)? |
|
uploads
Package uploads serves an account's own uploads: their IDs, the quota and the write tokens.
|
Package uploads serves an account's own uploads: their IDs, the quota and the write tokens. |
|
user_settings
Package user_settings is a thin caching wrapper over the user_settings DB row.
|
Package user_settings is a thin caching wrapper over the user_settings DB row. |
|
vfs
Package vfs describes the read-mostly virtual filesystem that backs the user-facing library protocols.
|
Package vfs describes the read-mostly virtual filesystem that backs the user-facing library protocols. |
|
webdav
Package webdav provides a client and server WebDAV filesystem implementation.
|
Package webdav provides a client and server WebDAV filesystem implementation. |
|
webdav/internal
Package internal provides low-level helpers for WebDAV clients and servers.
|
Package internal provides low-level helpers for WebDAV clients and servers. |
Click to show internal directories.
Click to hide internal directories.