17 lines
215 B
Go
17 lines
215 B
Go
package extractor
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
type OpenPageOptions struct {
|
|
Referer string
|
|
}
|
|
|
|
type Browser interface {
|
|
io.Closer
|
|
|
|
Open(ctx context.Context, url string, opts OpenPageOptions) (Document, error)
|
|
}
|