nowplaying

package
v0.0.0-...-b4bf89c Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package nowplaying defines the service used for the now playing page, including related routes, handlers, and templates.

templ: version: v0.2.680

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NowPlaying

func NowPlaying(data NowPlayingData) templ.Component

Types

type NowPlayingData

type NowPlayingData struct {
	User       database.GetUserRow
	NowPlaying []tmdbapi.NowPlayingMovie
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service holds the router, handlers, and functions related to the now playing page. Fields should be private to prevent access by other services.

func NewService

func NewService(auth *auth.Service, tmdb *tmdbapi.Service) *Service

NewService is the constructor function for creating the now playing service.

func (*Service) NewRouter

func (s *Service) NewRouter() *http.ServeMux

NewRouter creates a http.Handler with the route for the now playing page.

Jump to

Keyboard shortcuts

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