site

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomePageData

type HomePageData struct {
	UserID         string
	TwitchAuthURL  string
	SubscribeURL   string
	UnsubscribeURL string
	SpotifyAuthURL string
	PreferencesURL string
	Authenticated  bool
	Subscribed     bool
	Error          string
	BrowserSource  string
}

type HomePageRenderer

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

func NewHomePageRenderer

func NewHomePageRenderer(siteURL string, u db.UserStore, twitch, spotify *util.AuthConfig) *HomePageRenderer

func (*HomePageRenderer) HomePage

func (h *HomePageRenderer) HomePage(w http.ResponseWriter, r *http.Request)

type PreferencePageData

type PreferencePageData struct {
	SaveURL         string
	Authenticated   bool
	RewardID        string
	Explicit        bool
	SongLengthLimit int `unit:"seconds"`
}

type PreferencesRenderer

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

func NewPreferencesRenderer

func NewPreferencesRenderer(p db.PreferenceStore, siteURL string) *PreferencesRenderer

func (*PreferencesRenderer) PreferencesPage

func (p *PreferencesRenderer) PreferencesPage(w http.ResponseWriter, r *http.Request)

type QueuePageData added in v1.3.1

type QueuePageData struct {
	Tracks []*util.Track
}

type QueuePageRenderer added in v1.3.1

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

func NewQueuePageRenderer added in v1.3.1

func NewQueuePageRenderer(siteURL string, u db.UserStore, spotify *util.AuthConfig) *QueuePageRenderer

func (*QueuePageRenderer) GetUserQueue added in v1.3.1

func (h *QueuePageRenderer) GetUserQueue(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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