Documentation
¶
Index ¶
- type GraphQLRequest
- type GraphQLResponse
- type Image
- type JavstashConfig
- type Performer
- type Scene
- type Scraper
- func (s *Scraper) CanHandleURL(rawURL string) bool
- func (s *Scraper) Close() error
- func (s *Scraper) Config() *config.ScraperSettings
- func (s *Scraper) ExtractIDFromURL(urlStr string) (string, error)
- func (s *Scraper) GetURL(id string) (string, error)
- func (s *Scraper) IsEnabled() bool
- func (s *Scraper) Name() string
- func (s *Scraper) ScrapeURL(ctx context.Context, rawURL string) (*models.ScraperResult, error)
- func (s *Scraper) Search(ctx context.Context, id string) (*models.ScraperResult, error)
- func (s *Scraper) ValidateConfig(cfg *config.ScraperSettings) error
- type Studio
- type Tag
- type URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQLRequest ¶
type GraphQLResponse ¶
type JavstashConfig ¶
type JavstashConfig struct {
config.BaseScraperConfig `yaml:",inline"`
APIKey string `yaml:"api_key" json:"api_key"`
BaseURL string `yaml:"base_url" json:"base_url"`
Language string `yaml:"language" json:"language"`
}
func (*JavstashConfig) ValidateConfig ¶
func (c *JavstashConfig) ValidateConfig(sc *config.ScraperSettings) error
type Scene ¶
type Scene struct {
ID string `json:"id"`
Code string `json:"code"`
Title string `json:"title"`
ReleaseDate string `json:"release_date"`
Duration int `json:"duration"`
Director string `json:"director"`
Details string `json:"details"`
Studio *Studio `json:"studio"`
Performers []Performer `json:"performers"`
Tags []Tag `json:"tags"`
Images []Image `json:"images"`
URLs []URL `json:"urls"`
}
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func New ¶
func New(settings config.ScraperSettings, globalProxy *config.ProxyConfig, globalFlareSolverr config.FlareSolverrConfig) *Scraper
func (*Scraper) CanHandleURL ¶
func (*Scraper) Config ¶
func (s *Scraper) Config() *config.ScraperSettings
func (*Scraper) ExtractIDFromURL ¶
func (*Scraper) ValidateConfig ¶
func (s *Scraper) ValidateConfig(cfg *config.ScraperSettings) error
Click to show internal directories.
Click to hide internal directories.