diff --git a/processor.go b/processor.go deleted file mode 100644 index 4f5e655..0000000 --- a/processor.go +++ /dev/null @@ -1,7 +0,0 @@ -package extractor - -import "context" - -type Processor interface { - Process(ctx context.Context, src source) (source, error) -} diff --git a/source.go b/source.go deleted file mode 100644 index 21fc0a9..0000000 --- a/source.go +++ /dev/null @@ -1,29 +0,0 @@ -package extractor - -import ( - "io" - "strings" -) - -type Source interface { - URL() string - String() string - Reader() io.Reader -} - -type source struct { - sourceUrl string - content string -} - -func (s source) URL() string { - return s.sourceUrl -} - -func (s source) String() string { - return s.content -} - -func (s source) Reader() io.Reader { - return strings.NewReader(s.content) -}