From 0d61b36cb3bd8774fb8bc9c3d6005a788e11d9bb Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:18:54 +0330 Subject: [PATCH] Import source: handler/content Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- handler/content.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 handler/content.go diff --git a/handler/content.go b/handler/content.go new file mode 100644 index 0000000..83efde4 --- /dev/null +++ b/handler/content.go @@ -0,0 +1,8 @@ +package handler + +// ContentHandler defines an interface for handling content sources that are +// represented as URLs. When the handler will finish its job it should notify +// the progress. Each error should be sent to the errors channel. +type ContentHandler interface { + Process(url string, progress chan<- int, errors chan<- error) +}