Documentation
¶
Index ¶
- type App
- func (app *App) APIMedia(c echo.Context) error
- func (app *App) APIMedias(c echo.Context) error
- func (app *App) APIMetricsMedia(c echo.Context) error
- func (app *App) APIMetricsUser(c echo.Context) error
- func (app *App) APIMovie(c echo.Context) error
- func (app *App) APIMovies(c echo.Context) error
- func (app *App) APIRecommendationByHash(c echo.Context) error
- func (app *App) APIShow(c echo.Context) error
- func (app *App) APIShows(c echo.Context) error
- func (app *App) APITranscode(c echo.Context) error
- func (app *App) APITranscodePoll(c echo.Context) error
- func (a *App) GetConfig() *m.Config
- func (a *App) GetPort() int
- func (a *App) Init(c string)
- func (a *App) Log(level string)
- func (app *App) RedirectToBrowse(c echo.Context) error
- func (app *App) UI404Page(c echo.Context) error
- func (app *App) UI500Page(c echo.Context) error
- func (app *App) UIBrowsePage(c echo.Context) error
- func (app *App) UIMoviePage(c echo.Context) error
- func (app *App) UIMoviesPage(c echo.Context) error
- func (app *App) UIShowPage(c echo.Context) error
- func (app *App) UIShowsPage(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config *m.Config
DB *db.DB
Logger *zap.Logger
Transcoder *transcoder.Transcoder
Recommender *recommender.Recommender
Settings m.Settings
}
App represents dependencies which will be injected into the Server handlers.
func (*App) APIMovie ¶
APIMovie returns the media entry (movie) matching the hash from the database in JSON
func (*App) APIShow ¶
APIShow returns the media entry (show) matching the hash from the database in JSON
func (*App) APITranscode ¶
APITranscode handles the initiation of the transcoding process
func (*App) APITranscodePoll ¶
APITranscodePoll provides transcoding status updates via a websocket
func (*App) Init ¶
Init sets up some basic parameters of the provided App instance, like the Config and the DB (Database) connection.
func (*App) RedirectToBrowse ¶
RedirectToBrowse redirects to /browse
func (*App) UIBrowsePage ¶
UIBrowsePage renders the home page via the template browse.html
func (*App) UIMoviePage ¶
UIMoviePage renders the movie detail page via the template movie.html
func (*App) UIMoviesPage ¶
UIMoviesPage renders the browse page via the template browse-movies.html
func (*App) UIShowPage ¶
UIShowPage renders the show detail page via the template show.html