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
- func (a *API) First(url string) (*JavDB, error)
- func (a *API) Get(t interface{}) ([]*JavDB, error)
- func (a *API) SetFilter(filter Filter) *API
- func (a *API) SetLimit(limit int) *API
- func (a *API) SetPage(page int) *API
- func (a *API) WithDebug() *API
- func (a *API) WithDetails() *API
- func (a *API) WithRandom() *API
- func (a *API) WithReviews() *API
- type APIActors
- func (a *APIActors) Get() ([]*JavDB, error)
- func (a *APIActors) SetActor(actor string) *APIActors
- func (a *APIActors) SetFilter(filter Filter) *APIActors
- func (a *APIActors) SetFilterAll() *APIActors
- func (a *APIActors) SetFilterCanDownload() *APIActors
- func (a *APIActors) SetFilterHasZH() *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) WithDebug() *APIActors
- func (a *APIActors) WithDetails() *APIActors
- func (a *APIActors) WithRandom() *APIActors
- func (a *APIActors) WithReviews() *APIActors
- type APIFirst
- type APIHomes
- func (a *APIHomes) Get() ([]*JavDB, error)
- func (a *APIHomes) SetCategoryAll() *APIHomes
- func (a *APIHomes) SetCategoryCensored() *APIHomes
- func (a *APIHomes) SetCategoryUncensored() *APIHomes
- func (a *APIHomes) SetCategoryWestern() *APIHomes
- func (a *APIHomes) SetFilter(filter Filter) *APIHomes
- func (a *APIHomes) SetFilterByAll() *APIHomes
- func (a *APIHomes) SetFilterByCanDownload() *APIHomes
- func (a *APIHomes) SetFilterByHasReviews() *APIHomes
- func (a *APIHomes) SetFilterByHasZH() *APIHomes
- func (a *APIHomes) SetLimit(limit int) *APIHomes
- func (a *APIHomes) SetPage(page int) *APIHomes
- func (a *APIHomes) SetSortByMagnetUpdate() *APIHomes
- func (a *APIHomes) SetSortByPubDate() *APIHomes
- func (a *APIHomes) WithDebug() *APIHomes
- func (a *APIHomes) WithDetails() *APIHomes
- func (a *APIHomes) WithRandom() *APIHomes
- func (a *APIHomes) WithReviews() *APIHomes
- type APIMakers
- func (a *APIMakers) Get() ([]*JavDB, error)
- func (a *APIMakers) SetFilter(filter Filter) *APIMakers
- func (a *APIMakers) SetFilterAll() *APIMakers
- func (a *APIMakers) SetFilterCanDownload() *APIMakers
- func (a *APIMakers) SetFilterHasPreview() *APIMakers
- func (a *APIMakers) SetFilterHasZH() *APIMakers
- func (a *APIMakers) SetFilterPlayable() *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) WithDebug() *APIMakers
- func (a *APIMakers) WithDetails() *APIMakers
- func (a *APIMakers) WithRandom() *APIMakers
- func (a *APIMakers) WithReviews() *APIMakers
- type APIRankings
- func (a *APIRankings) Get() ([]*JavDB, error)
- func (a *APIRankings) SetCategoryCensored() *APIRankings
- func (a *APIRankings) SetCategoryUncensored() *APIRankings
- func (a *APIRankings) SetCategoryWestern() *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) SetTimeDaily() *APIRankings
- func (a *APIRankings) SetTimeMonthly() *APIRankings
- func (a *APIRankings) SetTimeWeekly() *APIRankings
- func (a *APIRankings) WithDebug() *APIRankings
- func (a *APIRankings) WithDetails() *APIRankings
- func (a *APIRankings) WithRandom() *APIRankings
- func (a *APIRankings) WithReviews() *APIRankings
- type APIRaw
- func (a *APIRaw) Get() ([]*JavDB, error)
- func (a *APIRaw) SetFilter(filter Filter) *APIRaw
- func (a *APIRaw) SetLimit(limit int) *APIRaw
- func (a *APIRaw) SetPage(page int) *APIRaw
- func (a *APIRaw) SetRaw(raw string) *APIRaw
- func (a *APIRaw) WithDebug() *APIRaw
- func (a *APIRaw) WithDetails() *APIRaw
- func (a *APIRaw) WithRandom() *APIRaw
- func (a *APIRaw) WithReviews() *APIRaw
- type APISearch
- func (a *APISearch) Get() ([]*JavDB, error)
- 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) WithDebug() *APISearch
- func (a *APISearch) WithDetails() *APISearch
- func (a *APISearch) WithReviews() *APISearch
- type Client
- func (c *Client) GetActors() *APIActors
- func (c *Client) GetFirst() *APIFirst
- func (c *Client) GetHomes() *APIHomes
- func (c *Client) GetMakers() *APIMakers
- func (c *Client) GetRankings() *APIRankings
- func (c *Client) GetRaw() *APIRaw
- func (c *Client) GetSearch() *APISearch
- func (c *Client) SetClient(client *http.Client) *Client
- type Filter
- type JavDB
Constants ¶
View Source
const ( ActorsFilterAll = "" ActorsFilterPlayable = "p" ActorsFilterSingle = "s" ActorsFilterCanDownload = "d" ActorsFilterHasZH = "c" )
View Source
const ( HomesCategoryAll = "" HomesCategoryCensored = "censored" HomesCategoryUncensored = "uncensored" HomesCategoryWestern = "western" HomesSortByPubDate = "1" HomesSortByMagnetUpdate = "2" HomesFilterByAll = "0" HomesFilterByCanDownload = "1" HomesFilterByHasZH = "2" HomesFilterByHasReviews = "3" )
View Source
const ( MakersFilterAll = "" MakersFilterPlayable = "playable" MakersFilterSingle = "single" MakersFilterCanDownload = "download" MakersFilterHasZH = "cnsub" MakersFilterHasPreview = "preview" )
View Source
const ( RankingsCategoryCensored = "censored" RankingsCategoryUncensored = "uncensored" RankingsCategoryWestern = "western" RankingsTimeDaily = "daily" RankingsTimeWeekly = "weekly" RankingsTimeMonthly = "monthly" )
View Source
const ( PathReviews = "/reviews/lastest" PathRankings = "/rankings/movies" PathMakers = "/makers" PathActors = "/actors" PathSearch = "/search" )
Variables ¶
This section is empty.
Functions ¶
func WithDomain ¶
func WithTimeout ¶
func WithUserAgent ¶
Types ¶
type APIActors ¶
func (*APIActors) SetFilterAll ¶
func (*APIActors) SetFilterCanDownload ¶
func (*APIActors) SetFilterHasZH ¶
func (*APIActors) SetFilterPlayable ¶
func (*APIActors) SetFilterSingle ¶
func (*APIActors) WithDetails ¶
func (*APIActors) WithRandom ¶
func (*APIActors) WithReviews ¶
type APIFirst ¶
type APIFirst struct { Raw string // contains filtered or unexported fields }
func (*APIFirst) WithReviews ¶
type APIHomes ¶
type APIHomes struct { Category string SortBy string FilterBy string // contains filtered or unexported fields }
func (*APIHomes) SetCategoryAll ¶
func (*APIHomes) SetCategoryCensored ¶
func (*APIHomes) SetCategoryUncensored ¶
func (*APIHomes) SetCategoryWestern ¶
func (*APIHomes) SetFilterByAll ¶
func (*APIHomes) SetFilterByCanDownload ¶
func (*APIHomes) SetFilterByHasReviews ¶
func (*APIHomes) SetFilterByHasZH ¶
func (*APIHomes) SetSortByMagnetUpdate ¶
func (*APIHomes) SetSortByPubDate ¶
func (*APIHomes) WithDetails ¶
func (*APIHomes) WithRandom ¶
func (*APIHomes) WithReviews ¶
type APIMakers ¶
func (*APIMakers) SetFilterAll ¶
func (*APIMakers) SetFilterCanDownload ¶
func (*APIMakers) SetFilterHasPreview ¶
func (*APIMakers) SetFilterHasZH ¶
func (*APIMakers) SetFilterPlayable ¶
func (*APIMakers) SetFilterSingle ¶
func (*APIMakers) WithDetails ¶
func (*APIMakers) WithRandom ¶
func (*APIMakers) WithReviews ¶
type APIRankings ¶
func (*APIRankings) Get ¶
func (a *APIRankings) Get() ([]*JavDB, error)
func (*APIRankings) SetCategoryCensored ¶
func (a *APIRankings) SetCategoryCensored() *APIRankings
func (*APIRankings) SetCategoryUncensored ¶
func (a *APIRankings) SetCategoryUncensored() *APIRankings
func (*APIRankings) SetCategoryWestern ¶
func (a *APIRankings) SetCategoryWestern() *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) SetTimeDaily ¶
func (a *APIRankings) SetTimeDaily() *APIRankings
func (*APIRankings) SetTimeMonthly ¶
func (a *APIRankings) SetTimeMonthly() *APIRankings
func (*APIRankings) SetTimeWeekly ¶
func (a *APIRankings) SetTimeWeekly() *APIRankings
func (*APIRankings) WithDebug ¶
func (a *APIRankings) WithDebug() *APIRankings
func (*APIRankings) WithDetails ¶
func (a *APIRankings) WithDetails() *APIRankings
func (*APIRankings) WithRandom ¶
func (a *APIRankings) WithRandom() *APIRankings
func (*APIRankings) WithReviews ¶
func (a *APIRankings) WithReviews() *APIRankings
type APIRaw ¶
type APIRaw struct { Raw string // contains filtered or unexported fields }
func (*APIRaw) WithDetails ¶
func (*APIRaw) WithRandom ¶
func (*APIRaw) WithReviews ¶
type APISearch ¶
type APISearch struct { Query string // contains filtered or unexported fields }
func (*APISearch) WithDetails ¶
func (*APISearch) WithReviews ¶
type Client ¶
func (*Client) GetRankings ¶
func (c *Client) GetRankings() *APIRankings
type JavDB ¶
type JavDB struct { Path string `json:"path"` Code string `json:"code"` Title string `json:"title"` Cover string `json:"cover"` Score float64 `json:"score"` ScoreCount int `json:"score_count"` PubDate time.Time `json:"pub_date"` HasZH bool `json:"has_zh"` Preview string `json:"preview"` Actresses []string `json:"actresses"` Tags []string `json:"tags"` Pics []string `json:"pics"` Magnets []string `json:"magnets"` Reviews []string `json:"reviews"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.