Documentation
¶
Index ¶
- Constants
- func WithDomain(domain string) func(c *Client)
- func WithProxy(addr string) func(c *Client)
- func WithTimeout(timeout time.Duration) func(c *Client)
- func WithUserAgent(ua string) func(c *Client)
- type API
- type APIActors
- func (a *APIActors) Get() ([]*Item, error)
- func (a *APIActors) SetActor(actor string) *APIActors
- func (a *APIActors) SetDebug() *APIActors
- func (a *APIActors) SetFilter(filter Filter) *APIActors
- func (a *APIActors) SetFilterAll() *APIActors
- func (a *APIActors) SetFilterCNSub() *APIActors
- func (a *APIActors) SetFilterDownload() *APIActors
- func (a *APIActors) SetFilterPlayable() *APIActors
- func (a *APIActors) SetFilterSingle() *APIActors
- func (a *APIActors) SetLimit(limit int) *APIActors
- func (a *APIActors) SetPage(page int) *APIActors
- func (a *APIActors) SetRandom() *APIActors
- type APIFirst
- type APIHome
- func (a *APIHome) Get() ([]*Item, error)
- func (a *APIHome) SetDebug() *APIHome
- func (a *APIHome) SetFilter(filter Filter) *APIHome
- func (a *APIHome) SetFilterAll() *APIHome
- func (a *APIHome) SetFilterCNSub() *APIHome
- func (a *APIHome) SetFilterDownload() *APIHome
- func (a *APIHome) SetFilterReview() *APIHome
- func (a *APIHome) SetLimit(limit int) *APIHome
- func (a *APIHome) SetPage(page int) *APIHome
- func (a *APIHome) SetRandom() *APIHome
- func (a *APIHome) SetSortMagnetDate() *APIHome
- func (a *APIHome) SetSortPublishDate() *APIHome
- func (a *APIHome) SetTypeAll() *APIHome
- func (a *APIHome) SetTypeCensored() *APIHome
- func (a *APIHome) SetTypeUncensored() *APIHome
- func (a *APIHome) SetTypeWestern() *APIHome
- type APIMakers
- func (a *APIMakers) Get() ([]*Item, error)
- func (a *APIMakers) SetDebug() *APIMakers
- func (a *APIMakers) SetFilter(filter Filter) *APIMakers
- func (a *APIMakers) SetFilterAll() *APIMakers
- func (a *APIMakers) SetFilterCNSub() *APIMakers
- func (a *APIMakers) SetFilterDownload() *APIMakers
- func (a *APIMakers) SetFilterPlayable() *APIMakers
- func (a *APIMakers) SetFilterPreview() *APIMakers
- func (a *APIMakers) SetFilterSingle() *APIMakers
- func (a *APIMakers) SetLimit(limit int) *APIMakers
- func (a *APIMakers) SetMaker(maker string) *APIMakers
- func (a *APIMakers) SetPage(page int) *APIMakers
- func (a *APIMakers) SetRandom() *APIMakers
- type APIRankings
- func (a *APIRankings) Get() ([]*Item, error)
- func (a *APIRankings) SetDebug() *APIRankings
- func (a *APIRankings) SetFilter(filter Filter) *APIRankings
- func (a *APIRankings) SetLimit(limit int) *APIRankings
- func (a *APIRankings) SetPage(page int) *APIRankings
- func (a *APIRankings) SetPeriodDaily() *APIRankings
- func (a *APIRankings) SetPeriodMonthly() *APIRankings
- func (a *APIRankings) SetPeriodWeekly() *APIRankings
- func (a *APIRankings) SetRandom() *APIRankings
- func (a *APIRankings) SetTypeCensored() *APIRankings
- func (a *APIRankings) SetTypeUncensored() *APIRankings
- func (a *APIRankings) SetTypeWestern() *APIRankings
- type APIRaw
- type APISearch
- func (a *APISearch) Get() ([]*Item, error)
- func (a *APISearch) SetDebug() *APISearch
- func (a *APISearch) SetFilter(filter Filter) *APISearch
- func (a *APISearch) SetLimit(limit int) *APISearch
- func (a *APISearch) SetPage(page int) *APISearch
- func (a *APISearch) SetQuery(query string) *APISearch
- func (a *APISearch) SetRandom() *APISearch
- type Client
- type Filter
- type Item
Constants ¶
View Source
const ( PathHome = "/" PathRankings = "/rankings/movies" PathMakers = "/makers" PathActors = "/actors" PathSearch = "/search" PathReviews = "/reviews/lastest" )
path
View Source
const ( HomeTypeAll = "" HomeTypeCensored = "censored" HomeTypeUncensored = "uncensored" HomeTypeWestern = "western" HomeFilterAll = "0" HomeFilterDownload = "1" HomeFilterCNSub = "2" HomeFilterReview = "3" HomeSortPublishDate = "1" HomeSortMagnetDate = "2" )
homes https://javdb.com/censored?vft=2
View Source
const ( RankingsPeriodDaily = "daily" RankingsPeriodWeekly = "weekly" RankingsPeriodMonthly = "monthly" RankingsTypeCensored = "censored" RankingsTypeUncensored = "uncensored" RankingsTypeWestern = "western" )
rankings https://javdb.com/rankings/movies?p=daily&t=censored
View Source
const ( MakersFilterAll = "" MakersFilterPlayable = "playable" MakersFilterSingle = "single" MakersFilterDownload = "download" MakersFilterCNSub = "cnsub" MakersFilterPreview = "preview" )
https://javdb.com/makers/7R?f=download
View Source
const ( ActorsFilterAll = "" ActorsFilterPlayable = "p" ActorsFilterSingle = "s" ActorsFilterDownload = "d" ActorsFilterCNSub = "c" )
Variables ¶
This section is empty.
Functions ¶
func WithDomain ¶
func WithTimeout ¶
func WithUserAgent ¶
Types ¶
type APIActors ¶
func (*APIActors) SetFilterAll ¶
func (*APIActors) SetFilterCNSub ¶ added in v0.0.9
func (*APIActors) SetFilterDownload ¶ added in v0.0.9
func (*APIActors) SetFilterPlayable ¶
func (*APIActors) SetFilterSingle ¶
type APIHome ¶ added in v0.0.9
type APIHome struct {
Type string
Filter string
Sort string
// contains filtered or unexported fields
}
func (*APIHome) SetFilterAll ¶ added in v0.0.9
func (*APIHome) SetFilterCNSub ¶ added in v0.0.9
func (*APIHome) SetFilterDownload ¶ added in v0.0.9
func (*APIHome) SetFilterReview ¶ added in v0.0.9
func (*APIHome) SetSortMagnetDate ¶ added in v0.0.9
func (*APIHome) SetSortPublishDate ¶ added in v0.0.9
func (*APIHome) SetTypeAll ¶ added in v0.0.9
func (*APIHome) SetTypeCensored ¶ added in v0.0.9
func (*APIHome) SetTypeUncensored ¶ added in v0.0.9
func (*APIHome) SetTypeWestern ¶ added in v0.0.9
type APIMakers ¶
func (*APIMakers) SetFilterAll ¶
func (*APIMakers) SetFilterCNSub ¶ added in v0.0.9
func (*APIMakers) SetFilterDownload ¶ added in v0.0.9
func (*APIMakers) SetFilterPlayable ¶
func (*APIMakers) SetFilterPreview ¶ added in v0.0.9
func (*APIMakers) SetFilterSingle ¶
type APIRankings ¶
func (*APIRankings) Get ¶
func (a *APIRankings) Get() ([]*Item, error)
func (*APIRankings) SetDebug ¶ added in v0.1.0
func (a *APIRankings) SetDebug() *APIRankings
func (*APIRankings) SetFilter ¶
func (a *APIRankings) SetFilter(filter Filter) *APIRankings
func (*APIRankings) SetLimit ¶
func (a *APIRankings) SetLimit(limit int) *APIRankings
func (*APIRankings) SetPage ¶
func (a *APIRankings) SetPage(page int) *APIRankings
func (*APIRankings) SetPeriodDaily ¶ added in v0.0.9
func (a *APIRankings) SetPeriodDaily() *APIRankings
func (*APIRankings) SetPeriodMonthly ¶ added in v0.0.9
func (a *APIRankings) SetPeriodMonthly() *APIRankings
func (*APIRankings) SetPeriodWeekly ¶ added in v0.0.9
func (a *APIRankings) SetPeriodWeekly() *APIRankings
func (*APIRankings) SetRandom ¶ added in v0.1.0
func (a *APIRankings) SetRandom() *APIRankings
func (*APIRankings) SetTypeCensored ¶ added in v0.0.9
func (a *APIRankings) SetTypeCensored() *APIRankings
func (*APIRankings) SetTypeUncensored ¶ added in v0.0.9
func (a *APIRankings) SetTypeUncensored() *APIRankings
func (*APIRankings) SetTypeWestern ¶ added in v0.0.9
func (a *APIRankings) SetTypeWestern() *APIRankings
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetRankings ¶
func (c *Client) GetRankings() *APIRankings
type Filter ¶
type Filter struct {
// list
ScoreGT float64
ScoreLT float64
ScoreCountGT int
ScoreCountLT int
PubDateBefore time.Time
PubDateAfter time.Time
HasSubtitle bool
// details
HasPreview bool
ActorsIn []string
ActorsNotIn []string
TagsIn []string
TagsNotIn []string
HasPics bool
HasMagnets bool
// reviews
HasReviews bool
// result
ResultRegexpMagnets string
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.