Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth interface { GetAuthURL(state string) string Exchange(code string) (*oauth2.Token, error) Refresh(token *oauth2.Token) (*oauth2.Token, error) }
Auth はSpotify OAuthに関連したAPIを呼び出すためのインターフェイスです。
type Player ¶
type Player interface { CurrentlyPlaying(ctx context.Context) (*entity.CurrentPlayingInfo, error) Play(ctx context.Context, deviceID string) error PlayWithTracks(ctx context.Context, deviceID string, trackURIs []string) error Pause(ctx context.Context, deviceID string) error Enqueue(ctx context.Context, trackURI string, deviceID string) error SetRepeatMode(ctx context.Context, on bool, deviceID string) error SetShuffleMode(ctx context.Context, on bool, deviceID string) error SkipAllTracks(ctx context.Context, deviceID string, trackURI string) error }
Player はSpotifyの曲の操作に関連するAPIを呼び出すためのインターフェースです。
Click to show internal directories.
Click to hide internal directories.