aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/cache/CacheCallbacks.hx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-10-19 15:32:53 -0700
committerPinapelz <yukais@pinapelz.com>2026-10-19 15:32:53 -0700
commit304bd1e77a5442f614aacd2b35f330777118b2cd (patch)
tree970e7da13bb1bd8edf1f9b453af4d0994c665e94 /src/server/cache/CacheCallbacks.hx
parenta4f3064542ddad6939598e7e60ca0090be07df60 (diff)
merge with upstream https://github.com/RblSb/SyncTubeHEADmaster
Diffstat (limited to 'src/server/cache/CacheCallbacks.hx')
-rw-r--r--src/server/cache/CacheCallbacks.hx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/cache/CacheCallbacks.hx b/src/server/cache/CacheCallbacks.hx
new file mode 100644
index 0000000..28ced3c
--- /dev/null
+++ b/src/server/cache/CacheCallbacks.hx
@@ -0,0 +1,15 @@
+package server.cache;
+
+typedef CacheCallbacks = {
+ /** Called once the final cache url is known, before download starts. **/
+ final onResolved:(url:String) -> Void;
+ final onProgress:(ratio:Float) -> Void;
+ final onComplete:() -> Void;
+ final onError:() -> Void;
+ final ?registerCancel:(cancel:() -> Void) -> Void;
+ /**
+ Called when the real title/duration become known (for items added
+ with a zero duration, e.g. when the client could not resolve them).
+ **/
+ final ?onMetadata:(title:Null<String>, duration:Float) -> Void;
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage