Documentation ¶
Index ¶
- type Activity
- type AnilistData
- type AnilistResponse
- type ComboDBMediaItem
- type Director
- type Manga
- type MangaCover
- type MangaTitle
- type MediaContainer
- type MediaItem
- type Metadata
- type NowPlayingResponse
- type Page
- type Player
- type PlexResponse
- type ResponseMediaItem
- type SerializableColours
- type SteamAppDetail
- type SteamAppResponse
- type SteamPlayerSummary
- type SteamResponse
- type SteamUser
- type TMDBImage
- type TMDBImageResponse
- type TraktEpisode
- type TraktIDs
- type TraktSummary
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnilistData ¶
type AnilistData struct {
Page Page `json:"Page"`
}
type AnilistResponse ¶
type AnilistResponse struct {
Data AnilistData `json:"data"`
}
type ComboDBMediaItem ¶
type ComboDBMediaItem struct { ID uint `json:"id" db:"id"` OccuredAt int64 `json:"occurred_at" db:"created_at"` Title string `json:"title" db:"title"` Subtitle string `json:"subtitle" db:"subtitle"` Category string `json:"category" db:"category"` IsActive bool `json:"is_active" db:"is_active"` Elapsed int `json:"elapsed_ms" db:"-"` Duration int `json:"duration_ms" db:"duration_ms"` Source string `json:"source" db:"source"` Image string `json:"image" db:"image"` DominantColours SerializableColours `json:"dominant_colours" db:"dominant_colours"` Backfilled bool `json:"-" db:"-"` }
Used in V4 but not renamed until V3 is deprecated
type Manga ¶
type Manga struct { Id int64 `json:"id"` Title MangaTitle `json:"title"` Chapters int `json:"chapters"` CoverImage MangaCover `json:"coverImage"` }
type MangaCover ¶
type MangaCover struct {
ExtraLarge string `json:"extraLarge"`
}
type MangaTitle ¶
type MangaTitle struct {
UserPreferred string `json:"userPreferred"`
}
type MediaContainer ¶
type MediaItem ¶
type MediaItem struct { CreatedAt int64 `json:"-"` Title string `json:"title"` Subtitle string `json:"subtitle"` Category string `json:"category"` IsActive bool `json:"is_active"` Elapsed int `json:"elapsed_ms"` Duration int `json:"duration_ms"` Source string `json:"source"` Image string `json:"image"` DominantColours SerializableColours `json:"dominant_colours"` Backfilled bool `json:"-"` }
type Metadata ¶
type Metadata struct { Attribution string `json:"attribution"` Duration int `json:"duration"` GrandparentTitle string `json:"grandparentTitle"` Thumb string `json:"thumb"` ParentThumb string `json:"parentThumb"` Index int `json:"index"` ParentIndex int `json:"parentIndex"` Title string `json:"title"` Type string `json:"type"` ViewOffset int `json:"viewOffset"` Director []Director `json:"Director"` Player Player `json:"Player"` User User `json:"User"` }
type NowPlayingResponse ¶
type NowPlayingResponse struct { ExpiresAt string `json:"expires_at"` StartedAt string `json:"started_at"` Action string `json:"action"` Type string `json:"type"` Movie TraktSummary `json:"movie"` Episode TraktEpisode `json:"episode"` Show TraktSummary `json:"show"` PodcastEpisode TraktEpisode `json:"podcast_episode"` Podcast TraktSummary `json:"podcast"` }
type PlexResponse ¶
type PlexResponse struct {
MediaContainer MediaContainer `json:"MediaContainer"`
}
type ResponseMediaItem ¶
type ResponseMediaItem struct { OccuredAt string `json:"occurred_at"` Title string `json:"title"` Subtitle string `json:"subtitle"` Category string `json:"category"` Source string `json:"source"` Image string `json:"image"` Duration int `json:"duration_ms"` DominantColours SerializableColours `json:"dominant_colours"` }
type SerializableColours ¶
type SerializableColours []string
SerializableColours is a custom DB extension type that stores a string slice as a comma separate value in the database Example input: []string{"#020304", "#6581be"} Example DB value: #020304,#6581be
func (*SerializableColours) Scan ¶
func (s *SerializableColours) Scan(src interface{}) error
type SteamAppDetail ¶
type SteamAppResponse ¶
type SteamAppResponse struct {
Data SteamAppDetail `json:"data"`
}
type SteamPlayerSummary ¶
type SteamPlayerSummary struct {
Response SteamResponse `json:"response"`
}
type SteamResponse ¶
type SteamResponse struct {
Players []SteamUser `json:"players"`
}
type TMDBImageResponse ¶
type TraktEpisode ¶
type TraktSummary ¶
Click to show internal directories.
Click to hide internal directories.