removed some unused files
This commit is contained in:
		@@ -1,7 +0,0 @@
 | 
				
			|||||||
package extractor
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import "context"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type Processor interface {
 | 
					 | 
				
			||||||
	Process(ctx context.Context, src source) (source, error)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										29
									
								
								source.go
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								source.go
									
									
									
									
									
								
							@@ -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)
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user