internal/

directory
v0.10.0-dev.62 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package app is subflux's composition root: the one boot path, the supervision of every long-running component, and the drain.
Package app is subflux's composition root: the one boot path, the supervision of every long-running component, and the drain.
Package buildinfo answers which subflux build is running.
Package buildinfo answers which subflux build is running.
Package cache is a bounded TTL cache for provider lookups that coalesces concurrent fetches of one key.
Package cache is a bounded TTL cache for provider lookups that coalesces concurrent fetches of one key.
Package embedded reads the subtitle tracks inside a video file and stores them as its instance's probe, and owns the embedded_subtitles section.
Package embedded reads the subtitle tracks inside a video file and stores them as its instance's probe, and owns the embedded_subtitles section.
Package episodematch decides which member of a season pack, and whether a single name, is an item's episode, from evidence alone: a pack's numbers follow whatever order its uploader used, so a number is trusted only when the evidence leaves no other reading.
Package episodematch decides which member of a season pack, and whether a single name, is an item's episode, from evidence alone: a pack's numbers follow whatever order its uploader used, so a number is trusted only when the evidence leaves no other reading.
Package epmarker is the one authority for what a release or archive member name claims about its season and episode.
Package epmarker is the one authority for what a release or archive member name claims about its season and episode.
Package formschema is the form-shaped half of every settings section: a schema of typed fields, the decoder that reads a section's YAML node by that schema, and the marks that tell the settings document which scalars are safe to show.
Package formschema is the form-shaped half of every settings section: a schema of typed fields, the decoder that reads a section's YAML node by that schema, and the marks that tell the settings document which scalars are safe to show.
Package language is subflux's language model: canonical BCP 47 tags over langtag, the subtitle targets a configuration asks for, how close an offered tag is to a target and whether automation may take it, and the filename spellings subflux writes and reads.
Package language is subflux's language model: canonical BCP 47 tags over langtag, the subtitle targets a configuration asks for, how close an offered tag is to a target and whether automation may take it, and the filename spellings subflux writes and reads.
Package media is subflux's identity: the key an episode or movie is stored, matched and served by.
Package media is subflux's identity: the key an episode or movie is stored, matched and served by.
Package mediarefresh tells the sources that can rescan that a root's subtitle files changed: one sink per source reads statedb's change feed from its own cursor and rescans the roots it owns, so a write never waits on a source and an outage delays a rescan without losing it.
Package mediarefresh tells the sources that can rescan that a root's subtitle files changed: one sink per source reads statedb's change feed from its own cursor and rescans the roots it owns, so a write never waits on a source and an outage delays a rescan without losing it.
Package mediaserver is subflux's view of the media servers (Plex) that play a library: how each labels the subtitles beside a video.
Package mediaserver is subflux's view of the media servers (Plex) that play a library: how each labels the subtitles beside a video.
Package mediasource is what subflux learns from its media sources (Sonarr, Radarr): the facts a source reports about its series and movies, its change cursor, and the errors every source call answers with.
Package mediasource is what subflux learns from its media sources (Sonarr, Radarr): the facts a source reports about its series and movies, its change cursor, and the errors every source call answers with.
arr
Package arr is what the Sonarr and Radarr adapters share: their form, error classifier, history cursor, tags, root folders and the poster's two-zone fetch.
Package arr is what the Sonarr and Radarr adapters share: their form, error classifier, history cursor, tags, root folders and the poster's two-zone fetch.
arr/arrtest
Package arrtest serves a Sonarr's or Radarr's recorded answers to the adapters' tests, in process or over a socket, and checks a recording directory holds no credential.
Package arrtest serves a Sonarr's or Radarr's recorded answers to the adapters' tests, in process or over a socket, and checks a recording directory holds no credential.
radarr
Package radarr is the media source over Radarr (API v3), through arrapi v3.
Package radarr is the media source over Radarr (API v3), through arrapi v3.
sonarr
Package sonarr is the media source over Sonarr v4 (API v3) and v5 (API v5), through arrapi v3.
Package sonarr is the media source over Sonarr v4 (API v3) and v5 (API v5), through arrapi v3.
sourcetest
Package sourcetest is the contract suite every mediasource adapter passes, the fake library a harness serves, and Fake, an in-memory adapter for Set and scan tests.
Package sourcetest is the contract suite every mediasource adapter passes, the fake library a harness serves, and Fake, an in-memory adapter for Set and scan tests.
Package mediawrite is the one writer of subtitle files beside videos.
Package mediawrite is the one writer of subtitle files beside videos.
Package obs is subflux's /metrics registry: the platform series and the door every other owner's series registers through.
Package obs is subflux's /metrics registry: the platform series and the door every other owner's series registers through.
Package provider is the boundary between subflux and the subtitle sites it searches.
Package provider is the boundary between subflux and the subtitle sites it searches.
animemap
Package animemap is what the anime adapters share: animap's anime map, read through mapread and refreshed on demand once per process, its alert, the landing lookups over it, and the one reader of what an anime release's file name claims.
Package animemap is what the anime adapters share: animap's anime map, read through mapread and refreshed on demand once per process, its alert, the landing lookups over it, and the one reader of what an anime release's file name claims.
animetosho
Package animetosho is the AnimeTosho provider: the subtitle attachments of the anime releases AnimeTosho's feed indexes, searched by AniDB episode or anime through the anime map, else by title.
Package animetosho is the AnimeTosho provider: the subtitle attachments of the anime releases AnimeTosho's feed indexes, searched by AniDB episode or anime through the anime map, else by title.
archive
Package archive extracts a subtitle from a ZIP or RAR container.
Package archive extracts a subtitle from a ZIP or RAR container.
betaseries
Package betaseries is the BetaSeries provider: English and French TV subtitles from the BetaSeries API by the series' TVDB id, downloaded through www.betaseries.com's /srt links.
Package betaseries is the BetaSeries provider: English and French TV subtitles from the BetaSeries API by the series' TVDB id, downloaded through www.betaseries.com's /srt links.
gestdown
Package gestdown is the Gestdown provider: Addic7ed's TV subtitles through Gestdown's REST API (https://gestdown.readme.io/reference), found by the series' TVDB id, one season and language per request.
Package gestdown is the Gestdown provider: Addic7ed's TV subtitles through Gestdown's REST API (https://gestdown.readme.io/reference), found by the series' TVDB id, one season and language per request.
hdbits
Package hdbits is the HDBits.org provider: its JSON API finds a title's torrents by TVDB season or IMDb id and lists each torrent's subtitles, and getdox.php serves a subtitle or season-pack archive.
Package hdbits is the HDBits.org provider: its JSON API finds a title's torrents by TVDB season or IMDb id and lists each torrent's subtitles, and getdox.php serves a subtitle or season-pack archive.
internal/dialhook
Package dialhook carries a TLS dial on a request context, so a test can serve a provider's real hosts in memory while the provider Client still runs its host pin first.
Package dialhook carries a TLS dial on a request context, so a test can serve a provider's real hosts in memory while the provider Client still runs its host pin first.
opensubtitles
Package opensubtitles is the OpenSubtitles.com provider.
Package opensubtitles is the OpenSubtitles.com provider.
providers
Package providers is the table of every provider subflux can search.
Package providers is the table of every provider subflux can search.
providertest
Package providertest serves provider fakes on their real host names, in memory and over TLS, for tests of code that sends requests through a provider Client.
Package providertest serves provider fakes on their real host names, in memory and over TLS, for tests of code that sends requests through a provider Client.
subdl
Package subdl is the SubDL provider: its REST API at api.subdl.com, by IMDb or TMDB id or by title, with downloads from dl.subdl.com.
Package subdl is the SubDL provider: its REST API at api.subdl.com, by IMDb or TMDB id or by title, with downloads from dl.subdl.com.
subsource
Package subsource is the SubSource provider: its REST API at api.subsource.net, which finds a title by IMDb id (falling back to its text search) and lists that title's subtitles per language.
Package subsource is the SubSource provider: its REST API at api.subsource.net, which finds a title by IMDb id (falling back to its text search) and lists that title's subtitles per language.
yifysubtitles
Package yifysubtitles is the YIFY Subtitles provider: movie subtitles read from yifysubtitles.ch's pages by IMDb id.
Package yifysubtitles is the YIFY Subtitles provider: movie subtitles read from yifysubtitles.ch's pages by IMDb id.
Package providercalls is the one gate every subtitle-provider call passes.
Package providercalls is the one gate every subtitle-provider call passes.
Package rank answers how well a subtitle's release fits the video's, as tri-state facts and a Fit grade with no number anywhere.
Package rank answers how well a subtitle's release fits the video's, as tri-state facts and a Fit grade with no number anywhere.
Package release reads a release or subtitle name with the patterns the arrs and TRaSH publish, imported as published by cmd/release-patterns into patterns_gen.go and run by netregex with .NET's match semantics.
Package release reads a release or subtitle name with the patterns the arrs and TRaSH publish, imported as published by cmd/release-patterns into patterns_gen.go and run by netregex with .NET's match semantics.
netregex
Package netregex runs .NET-flavour regular expressions with .NET's match semantics, as dlclark/regexp2 defines them, in polynomial time.
Package netregex runs .NET-flavour regular expressions with .NET's match semantics, as dlclark/regexp2 defines them, in polynomial time.
Package scan runs one loop per configured source: the whole passes and change batches that bring a source's library into statedb through its pass protocol (design 5).
Package scan runs one loop per configured source: the whole passes and change batches that bring a source's library into statedb through its pass protocol (design 5).
Package sentineltest checks an owner package's Codes table against the sentinels the package declares, for that package's tests.
Package sentineltest checks an owner package's Codes table against the sentinels the package declares, for that package's tests.
Package seriesorder joins a source's episode list to TVDB's aired order through SkyHook's lists of the same series, and keeps the lifecycle of each root's SkyHook evidence, the readings its keys come from, which statedb stores with the root record (media-sources design 4.4).
Package seriesorder joins a source's episode list to TVDB's aired order through SkyHook's lists of the same series, and keeps the lifecycle of each root's SkyHook evidence, the readings its keys come from, which statedb stores with the root record (media-sources design 4.4).
Package settings loads, holds and saves subflux's one configuration file: each section parsed by its owner, the result a Snapshot that is Unconfigured, Failed or Active, never a configuration beside a flag.
Package settings loads, holds and saves subflux's one configuration file: each section parsed by its owner, the result a Snapshot that is Unconfigured, Failed or Active, never a configuration beside a flag.
Package skyhook reads SkyHook, Sonarr's metadata service, for a series' episode list in one of its orders, the lists Sonarr builds its own from.
Package skyhook reads SkyHook, Sonarr's metadata service, for a series' episode list in one of its orders, the lists Sonarr builds its own from.
Package statedb is subflux's one store: the core namespace of a bolttable file holding source facts, ownership, coverage, locks, the write protocol's rows, history, work, jobs and credentials (the storage spec's design sections 3 to 10).
Package statedb is subflux's one store: the core namespace of a bolttable file holding source facts, ownership, coverage, locks, the write protocol's rows, history, work, jobs and credentials (the storage spec's design sections 3 to 10).
Package status holds what subflux is doing and what is wrong with it and its providers: jobs, alerts as levels and provider states.
Package status holds what subflux is doing and what is wrong with it and its providers: jobs, alerts as levels and provider states.
statustest
Package statustest holds the contract every status.Persister meets and an in-memory reference implementation of it.
Package statustest holds the contract every status.Persister meets and an in-memory reference implementation of it.
Package subsync aligns a subtitle to its video: the reference pipeline, the audio path, the dialogue filter and the verdict.
Package subsync aligns a subtitle to its video: the reference pipeline, the audio path, the dialogue filter and the verdict.
ffmpeg
Package ffmpeg is subflux's one ffmpeg and ffprobe runner.
Package ffmpeg is subflux's one ffmpeg and ffprobe runner.
ffmpeg/ffmpegtest
Package ffmpegtest lets a test binary stand in for ffmpeg and ffprobe.
Package ffmpegtest lets a test binary stand in for ffmpeg and ffprobe.
fft
Package fft provides a radix-2 Cooley-Tukey FFT implementation for cross-correlation in the subsync package.
Package fft provides a radix-2 Cooley-Tukey FFT implementation for cross-correlation in the subsync package.
vad
Package vad is a line-by-line Go port of WebRTC's voice activity detector (chromium/webrtc common_audio/vad/, BSD-3-Clause, Copyright (c) 2012 The WebRTC project authors): the allpass filter bank, log energy features, GMM classifier and adaptive model update.
Package vad is a line-by-line Go port of WebRTC's voice activity detector (chromium/webrtc common_audio/vad/, BSD-3-Clause, Copyright (c) 2012 The WebRTC project authors): the allpass filter bank, log energy features, GMM classifier and adaptive model update.
Package subtitleenc answers what encoding a subtitle's bytes are in, by ICU's charset-detection models (internal/subtitleenc/icu) narrowed by the subtitle's language, and reads and writes them as the Encoding Standard does, on golang.org/x/text's decode tables.
Package subtitleenc answers what encoding a subtitle's bytes are in, by ICU's charset-detection models (internal/subtitleenc/icu) narrowed by the subtitle's language, and reads and writes them as the Encoding Standard does, on golang.org/x/text's decode tables.
icu
Package icu is a Go port of ICU4C's charset detector (icu4c/source/i18n csrsbcs.cpp, csrmbcs.cpp and csr2022.cpp at 560e6db, ICU 69.1), under the Unicode License V3 (THIRD_PARTY_NOTICES.md).
Package icu is a Go port of ICU4C's charset detector (icu4c/source/i18n csrsbcs.cpp, csrmbcs.cpp and csr2022.cpp at 560e6db, ICU 69.1), under the Unicode License V3 (THIRD_PARTY_NOTICES.md).
Package subtitleext is the one answer to which file extensions count as subtitles, as three capability views over one table: archive input (members extracted from provider archives), on disk (standalone files beside a video) and writer output (formats subflux writes).
Package subtitleext is the one answer to which file extensions count as subtitles, as three capability views over one table: archive input (members extracted from provider archives), on disk (standalone files beside a video) and writer output (formats subflux writes).
Package subtitlefile is the subtitle file name grammar, <stem>.<language>[.sdh][.forced][.<N>].<ext>, and which video in a folder owns a name.
Package subtitlefile is the subtitle file name grammar, <stem>.<language>[.sdh][.forced][.<N>].<ext>, and which video in a folder owns a name.
Package syncsched aligns subtitles to their videos inside the server: search's Align, and the sync jobs a person starts with their previews.
Package syncsched aligns subtitles to their videos inside the server: search's Align, and the sync jobs a person starts with their previews.
Package testrig is the in-process harness, Start running app.Run on a temp directory and a loopback listener, and holds the module-wide checks: the retired modules, the retained set the dead-code roots name, and import confinement.
Package testrig is the in-process harness, Start running app.Run on a temp directory and a loopback listener, and holds the module-wide checks: the retired modules, the retained set the dead-code roots name, and import confinement.
Package timing is subflux's subtitle timing model: a Timing maps each cue's baseline time to the time a media server shows it, and every managed file is its baseline rendered under one Timing.
Package timing is subflux's subtitle timing model: a Timing maps each cue's baseline time to the time a media server shows it, and every managed file is its baseline rendered under one Timing.

Jump to

Keyboard shortcuts

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