Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMethodNotRegister = errors.New("method requested not registered")
Functions ¶
This section is empty.
Types ¶
type ChromeFactory ¶
type ChromeFactory struct {
// contains filtered or unexported fields
}
func NewChromeFactory ¶
func NewChromeFactory() *ChromeFactory
func (*ChromeFactory) Create ¶
func (f *ChromeFactory) Create() (Fetcher, error)
func (*ChromeFactory) Destroy ¶
func (f *ChromeFactory) Destroy(fetcher Fetcher)
func (*ChromeFactory) IsChromeInstalled ¶
func (f *ChromeFactory) IsChromeInstalled() bool
type ChromeFetcher ¶
type ChromeFetcher struct {
// contains filtered or unexported fields
}
type FetchMethod ¶
type FetchMethod string
type FetcherFactory ¶
type FetcherPool ¶
func NewPool ¶
func NewPool() *FetcherPool
func (*FetcherPool) Get ¶
func (f *FetcherPool) Get(ctx context.Context, method FetchMethod) (*puddle.Resource[Fetcher], error)
func (*FetcherPool) Methods ¶
func (f *FetcherPool) Methods() []FetchMethod
func (*FetcherPool) Register ¶
func (f *FetcherPool) Register(method FetchMethod, factory FetcherFactory, maxSize int) error
type HTTPFactory ¶
type HTTPFactory struct { }
func (*HTTPFactory) Create ¶
func (f *HTTPFactory) Create() (Fetcher, error)
func (*HTTPFactory) Destroy ¶
func (f *HTTPFactory) Destroy(fetcher Fetcher)
type HTTPFetcher ¶
type HTTPFetcher struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.