handlers

package
v0.0.0-...-b3bfe55 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func Album

func Album(db *data.Database, title string, templates *template.Template) route.Handler

func Artist

func Artist(db *data.Database, title string, templates *template.Template) route.Handler

func Feed

func Feed(db *data.Database, title, url string) route.HandlerFunc

func Index

func Index(db *data.Database, title string, templates *template.Template) route.Handler

func Listen

func Listen(db *data.Database, title string, templates *template.Template) route.Handler

func Played

func Played(db *data.Database, title string, templates *template.Template) route.Handler

func Scrobble

func Scrobble(auth Auth, db scrobbleDB) http.Handler

func Track

func Track(db *data.Database, title string, templates *template.Template) route.Handler

Types

type Auth

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

func NewAuth

func NewAuth(username, apiKey, secret string) Auth

type Date

type Date struct {
	Year  int
	Month time.Month
	Day   int
}

type DatedTracks

type DatedTracks struct {
	Date   Date
	Tracks []data.Scrobble
}

Jump to

Keyboard shortcuts

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