Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { Client spotify.Client RedirectURL string Token *oauth2.Token Storage *TokenStorage // contains filtered or unexported fields }
func NewAuth ¶
func NewAuth(options ...AuthOption) *Auth
func (*Auth) StartVerificationServer ¶
type AuthOption ¶
type AuthOption func(*Auth)
func WithToken ¶
func WithToken() AuthOption
func WithoutToken ¶
func WithoutToken(redirectURL string) AuthOption
type PersistDetails ¶
type TokenStorage ¶
type TokenStorage struct {
// contains filtered or unexported fields
}
func NewTokenStorage ¶
func NewTokenStorage() *TokenStorage
func (*TokenStorage) ClearToken ¶
func (ts *TokenStorage) ClearToken() error
func (*TokenStorage) ReadToken ¶
func (ts *TokenStorage) ReadToken(a interface{}) error
func (*TokenStorage) SaveToken ¶
func (ts *TokenStorage) SaveToken(b interface{}) error
Click to show internal directories.
Click to hide internal directories.