view

package
v0.0.0-...-5edc56a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	RecentMovies   []activity.Movie
	RecentTracks   []activity.Track
	RecentReleases []activity.Release
}

swagger:model

func ActivityView

func ActivityView(ctx Context) *Activity

type ActivityMovies

type ActivityMovies struct {
	Movies []activity.Movie
}

swagger:model

func ActivityMoviesView

func ActivityMoviesView(ctx Context, start, end time.Time) *ActivityMovies

type ActivityReleases

type ActivityReleases struct {
	Releases []activity.Release
}

swagger:model

func ActivityReleasesView

func ActivityReleasesView(ctx Context, start, end time.Time) *ActivityReleases

type ActivityTracks

type ActivityTracks struct {
	Tracks []activity.Track
}

swagger:model

func ActivityPopularTracksView

func ActivityPopularTracksView(ctx Context, start, end time.Time) *ActivityTracks

func ActivityTracksView

func ActivityTracksView(ctx Context, start, end time.Time) *ActivityTracks

type Artist

type Artist struct {
	Artist     music.Artist
	Image      string
	Background string
	Releases   []music.Release
	Similar    []music.Artist
	CoverSmall CoverFunc `json:"-"`
	Deep       TrackList `json:"-"`
	Popular    TrackList `json:"-"`
	Radio      TrackList `json:"-"`
	Shuffle    TrackList `json:"-"`
	Singles    TrackList `json:"-"`
	Tracks     TrackList `json:"-"`
}

swagger:model

func ArtistView

func ArtistView(ctx Context, artist music.Artist) *Artist

type Artists

type Artists struct {
	Artists    []music.Artist
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func ArtistsView

func ArtistsView(ctx Context) *Artists

type BackdropFunc

type BackdropFunc func(video.Movie) string

type Context

type Context interface {
	Config() *config.Config
	Activity() *activity.Activity
	Music() *music.Music
	Podcast() *podcast.Podcast
	Progress() *progress.Progress
	User() *auth.User
	Video() *video.Video
	LocateMovie(video.Movie) string
}

type CoverFunc

type CoverFunc func(interface{}) string

type Episode

type Episode struct {
	Episode      podcast.Episode
	EpisodeImage EpisodeImageFunc `json:"-"`
}

swagger:model

func EpisodeView

func EpisodeView(ctx Context, e podcast.Episode) *Episode

type EpisodeImageFunc

type EpisodeImageFunc func(podcast.Episode) string

type Genre

type Genre struct {
	Name        string
	Movies      []video.Movie
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
}

swagger:model

func GenreView

func GenreView(ctx Context, name string) *Genre

type Home

type Home struct {
	AddedReleases   []music.Release
	NewReleases     []music.Release
	AddedMovies     []video.Movie
	NewMovies       []video.Movie
	RecommendMovies []video.Recommend
	NewEpisodes     []podcast.Episode
	NewSeries       []podcast.Series
	CoverSmall      CoverFunc        `json:"-"`
	PosterSmall     PosterFunc       `json:"-"`
	SeriesImage     SeriesImageFunc  `json:"-"`
	EpisodeImage    EpisodeImageFunc `json:"-"`
}

swagger:model

func HomeView

func HomeView(ctx Context) *Home

type Index

type Index struct {
	Time        int64
	HasMusic    bool
	HasMovies   bool
	HasPodcasts bool
}

func IndexView

func IndexView(ctx Context) *Index

type Keyword

type Keyword struct {
	Name        string
	Movies      []video.Movie
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
}

swagger:model

func KeywordView

func KeywordView(ctx Context, name string) *Keyword

type Movie

type Movie struct {
	Movie       video.Movie
	Location    string
	Collection  video.Collection
	Other       []video.Movie
	Cast        []video.Cast
	Crew        []video.Crew
	Starring    []video.Person
	Directing   []video.Person
	Writing     []video.Person
	Genres      []string
	Keywords    []string
	Vote        int
	VoteCount   int
	Poster      PosterFunc   `json:"-"`
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
	Profile     ProfileFunc  `json:"-"`
}

swagger:model

func MovieView

func MovieView(ctx Context, m video.Movie) *Movie

type Movies

type Movies struct {
	Movies      []video.Movie
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
}

swagger:model

func MoviesView

func MoviesView(ctx Context) *Movies

type Offset

type Offset struct {
	Offset progress.Offset
}

swagger:model

func OffsetView

func OffsetView(ctx Context, offset progress.Offset) *Offset

type Podcasts

type Podcasts struct {
	Series      []podcast.Series
	SeriesImage SeriesImageFunc `json:"-"`
}

swagger:model

func PodcastsView

func PodcastsView(ctx Context) *Podcasts
type Popular struct {
	Artist     music.Artist
	Popular    []music.Track
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func PopularView

func PopularView(ctx Context, artist music.Artist) *Popular

type PosterFunc

type PosterFunc func(video.Movie) string

type Profile

type Profile struct {
	Person      video.Person
	Starring    []video.Movie
	Directing   []video.Movie
	Writing     []video.Movie
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
	Profile     ProfileFunc  `json:"-"`
}

swagger:model

func ProfileView

func ProfileView(ctx Context, p video.Person) *Profile

type ProfileFunc

type ProfileFunc func(video.Person) string

type Progress

type Progress struct {
	Offsets []progress.Offset
}

swagger:model

func ProgressView

func ProgressView(ctx Context) *Progress

type Radio

type Radio struct {
	Artist     []music.Station
	Genre      []music.Station
	Similar    []music.Station
	Period     []music.Station
	Series     []music.Station
	Other      []music.Station
	Stream     []music.Station
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func RadioView

func RadioView(ctx Context) *Radio

type Release

type Release struct {
	Artist     music.Artist
	Release    music.Release
	Image      string
	Tracks     []music.Track
	Singles    []music.Track
	Popular    []music.Track
	Similar    []music.Release
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func ReleaseView

func ReleaseView(ctx Context, release music.Release) *Release
type Search struct {
	Artists     []music.Artist
	Releases    []music.Release
	Tracks      []music.Track
	Movies      []video.Movie
	Series      []podcast.Series
	Episodes    []podcast.Episode
	Query       string
	Hits        int
	CoverSmall  CoverFunc  `json:"-"`
	PosterSmall PosterFunc `json:"-"`
}

swagger:model

func SearchView

func SearchView(ctx Context, query string) *Search

type Series

type Series struct {
	Series       podcast.Series
	Episodes     []podcast.Episode
	SeriesImage  SeriesImageFunc  `json:"-"`
	EpisodeImage EpisodeImageFunc `json:"-"`
}

swagger:model

func SeriesView

func SeriesView(ctx Context, s podcast.Series) *Series

type SeriesImageFunc

type SeriesImageFunc func(podcast.Series) string

type Singles

type Singles struct {
	Artist     music.Artist
	Singles    []music.Track
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func SinglesView

func SinglesView(ctx Context, artist music.Artist) *Singles

type TrackList

type TrackList struct {
	Title  string
	Tracks TracksFunc
}

type TracksFunc

type TracksFunc func() []music.Track

type WantList

type WantList struct {
	Artist     music.Artist
	Releases   []music.Release
	CoverSmall CoverFunc `json:"-"`
}

swagger:model

func WantListView

func WantListView(ctx Context, artist music.Artist) *WantList

type Watch

type Watch struct {
	Movie       video.Movie
	Location    string
	PosterSmall PosterFunc   `json:"-"`
	Backdrop    BackdropFunc `json:"-"`
}

swagger:model

func WatchView

func WatchView(ctx Context, m video.Movie) *Watch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL