Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type CredentialsStore ¶
type CredentialsStore interface {
Get(userId string) (*Credentials, error)
}
type DeezerCredentials ¶
type DeezerCredentials struct {
Token string
}
type DeezerStore ¶
func NewDeezerStore ¶
func NewDeezerStore(conn redis.Conn) *DeezerStore
func (*DeezerStore) Get ¶
func (s *DeezerStore) Get(userId string) (*Credentials, error)
type SpotifyCredentials ¶
type SpotifyCredentials struct { UserId string Token string RefreshToken string ExpiresAt time.Time }
SpotifyCredentials contains tokens used to make requests to the Spotify API on a user's behalf
type SpotifyStore ¶
SpotifyStore fetches Spotify user credentials from Redis
func NewSpotifyStore ¶
func NewSpotifyStore(conn redis.Conn) *SpotifyStore
NewSpotifyStore creates a Spotify store
func (*SpotifyStore) Get ¶
func (s *SpotifyStore) Get(userId string) (*Credentials, error)
func (*SpotifyStore) Set ¶
func (s *SpotifyStore) Set(credentials *Credentials) error
Click to show internal directories.
Click to hide internal directories.