spotify

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 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 Client

type Client struct {
	Store  db.DB
	UserID int32
}

Client wraps Spotify API interactions

func NewClient

func NewClient(store db.DB, userID int32) *Client

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context) (string, error)

GetToken retrieves a valid Spotify access token using Client Credentials flow

type TokenManager

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

TokenManager handles Spotify API token caching and refresh

Jump to

Keyboard shortcuts

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