Files
web_server/backend/handlers/store.go
2026-02-06 13:20:21 +00:00

22 lines
435 B
Go

package handlers
import (
"time"
"adam-french.co.uk/backend/services"
"github.com/zmb3/spotify/v2"
spotifyauth "github.com/zmb3/spotify/v2/auth"
"gorm.io/gorm"
)
type Store struct {
DB *gorm.DB
SpotifyAuth *spotifyauth.Authenticator
SpotifyClient *spotify.Client
Auth *services.Auth
Notes *services.Notes
RecentSongs *[]spotify.RecentlyPlayedItem
RecentSongsFetchedAt time.Time
}