Documentation ¶
Index ¶
- func GetTokenID(tokenStr string) (string, error)
- type HostedRoom
- type Store
- func (s *Store) Authenticate(ctx context.Context, username string, password string) (bool, error)
- func (s *Store) GetByID(ctx context.Context, userID string) (*User, error)
- func (s *Store) GetByUsername(ctx context.Context, username string) (*User, error)
- func (s *Store) InsertUser(ctx context.Context, tx *sql.Tx, username string, displayName string, ...) (newUserID string, err error)
- func (s *Store) UnlinkSpotify(ctx context.Context, userID string) error
- func (s *Store) UpdateSpotifyInfo(ctx context.Context, userID string, info *spotify.SpotifyUser) error
- func (s *Store) UpdateSpotifyToken(ctx context.Context, userID string, oauthToken *oauth2.Token) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTokenID ¶
Types ¶
type HostedRoom ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Authenticate ¶
func (*Store) GetByUsername ¶
func (*Store) InsertUser ¶
func (*Store) UnlinkSpotify ¶
func (*Store) UpdateSpotifyInfo ¶
Click to show internal directories.
Click to hide internal directories.