Import source: handler/content

Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
arsam
2026-09-18 23:18:54 +03:30
parent 21721b51d1
commit 0d61b36cb3
+8
View File
@@ -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)
}