Documentation
¶
Index ¶
- Constants
- func InferTraktListSlug(imdbListName string) string
- type Diff
- type IMDbItem
- type IMDbList
- type TraktAuthCodesBody
- type TraktAuthCodesResponse
- type TraktAuthTokensBody
- type TraktAuthTokensResponse
- type TraktCrudItem
- type TraktIDMeta
- type TraktIDMetas
- type TraktItem
- type TraktItemSpec
- type TraktItemSpecs
- type TraktItems
- type TraktList
- type TraktListAddBody
- type TraktListBody
- type TraktResponse
- type TraktUserInfo
Constants ¶
View Source
const ( TraktItemTypeEpisode = "episode" TraktItemTypeMovie = "movie" TraktItemTypeSeason = "season" TraktItemTypeShow = "show" TraktItemTypePerson = "person" )
Variables ¶
This section is empty.
Functions ¶
func InferTraktListSlug ¶
Types ¶
type Diff ¶ added in v1.3.1
func ItemsDifference ¶
type TraktAuthCodesBody ¶
type TraktAuthCodesBody struct {
ClientID string `json:"client_id"`
}
type TraktAuthCodesResponse ¶
type TraktAuthTokensBody ¶
type TraktAuthTokensResponse ¶
type TraktAuthTokensResponse struct {
AccessToken string `json:"access_token"`
}
type TraktCrudItem ¶
type TraktIDMeta ¶
type TraktIDMetas ¶
type TraktIDMetas []TraktIDMeta
func (TraktIDMetas) GetListNameFromSlug ¶
func (tidm TraktIDMetas) GetListNameFromSlug(slug string) string
type TraktItem ¶
type TraktItem struct { Type string `json:"type"` RatedAt string `json:"rated_at,omitempty"` Rating int `json:"rating,omitempty"` Movie TraktItemSpec `json:"movie,omitempty"` Show TraktItemSpec `json:"show,omitempty"` Episode TraktItemSpec `json:"episode,omitempty"` Person TraktItemSpec `json:"person,omitempty"` // contains filtered or unexported fields }
type TraktItemSpec ¶
type TraktItemSpec struct { IDMeta TraktIDMeta `json:"ids"` RatedAt *string `json:"rated_at,omitempty"` Rating *int `json:"rating,omitempty"` WatchedAt *string `json:"watched_at,omitempty"` }
type TraktItemSpecs ¶
type TraktItemSpecs []TraktItemSpec
type TraktItems ¶
type TraktItems []TraktItem
type TraktList ¶
type TraktList struct { Name *string `json:"name,omitempty"` IDMeta TraktIDMeta `json:"ids"` ListItems TraktItems IsWatchlist bool }
type TraktListAddBody ¶
type TraktListBody ¶
type TraktListBody struct { Movies TraktItemSpecs `json:"movies,omitempty"` Shows TraktItemSpecs `json:"shows,omitempty"` Episodes TraktItemSpecs `json:"episodes,omitempty"` People TraktItemSpecs `json:"people,omitempty"` }
type TraktResponse ¶
type TraktResponse struct { Added *TraktCrudItem `json:"added,omitempty"` Deleted *TraktCrudItem `json:"deleted,omitempty"` Existing *TraktCrudItem `json:"existing,omitempty"` NotFound *TraktListBody `json:"not_found,omitempty"` }
type TraktUserInfo ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.