mirror of
https://github.com/karust/openserp.git
synced 2026-08-06 01:03:56 +08:00
11 lines
268 B
Go
11 lines
268 B
Go
package core
|
|
|
|
import "io"
|
|
|
|
// HTMLParser is implemented by engines that can parse a SERP HTML document
|
|
// without a live browser. Used to expose POST /parse/{engine} endpoints.
|
|
type HTMLParser interface {
|
|
Name() string
|
|
ParseHTML(io.Reader) ([]SearchResult, error)
|
|
}
|