Documentation ¶
Index ¶
- func ParametersFromRequest(r *http.Request) (code string, guest_id string, password string)
- type Guest
- type InsertGuestRequest
- type InsertRoomParams
- type Member
- type QueuedTrack
- type Room
- type RoomResponse
- type Store
- func (s *Store) AddMember(ctx context.Context, roomID string, userID string) error
- func (s *Store) AddMemberByUsername(ctx context.Context, roomID string, username string, isModerator bool) error
- func (s *Store) DeleteByCode(ctx context.Context, roomCode string) error
- func (s *Store) GetAllMembers(ctx context.Context, roomID string) ([]Member, error)
- func (s *Store) GetAllRoomGuests(ctx context.Context, roomID string) ([]Guest, error)
- func (s *Store) GetByCode(ctx context.Context, code string) (Room, error)
- func (s *Store) GetEncryptedRoomTokens(ctx context.Context, code string) (accessToken []byte, accessTokenExpiry time.Time, refreshToken []byte, ...)
- func (s *Store) GetGuestName(ctx context.Context, roomID string, guestID string) (string, error)
- func (s *Store) GetHostID(ctx context.Context, code string) (string, error)
- func (s *Store) GetQueueTrackAddedBy(ctx context.Context, roomID string) (tracks []QueuedTrack, err error)
- func (s *Store) GetUserHostedRooms(ctx context.Context, userID string, isOpen bool) ([]Room, error)
- func (s *Store) GetUserJoinedRooms(ctx context.Context, userID string, isOpen bool) ([]Room, error)
- func (s *Store) Insert(ctx context.Context, insertParams InsertRoomParams) (Room, error)
- func (s *Store) InsertGuest(ctx context.Context, roomCode string, name string) (*Guest, error)
- func (s *Store) InsertGuestWithID(ctx context.Context, roomCode string, name string, guestID string) (*Guest, error)
- func (s *Store) MarkTracksAsPlayedSince(ctx context.Context, roomID string, since time.Time) error
- func (s *Store) RemoveMember(ctx context.Context, roomID string, userID string) error
- func (s *Store) SetIsOpen(ctx context.Context, roomID string, isOpen bool) error
- func (s *Store) SetModerator(ctx context.Context, roomID string, userID string, isModerator bool) error
- func (s *Store) SetQueueTrackGuest(ctx context.Context, roomCode string, trackID string, guestID string) error
- func (s *Store) SetQueueTrackUser(ctx context.Context, roomCode string, trackID string, userID string) error
- func (s *Store) UpdatePassword(ctx context.Context, roomID string, newPassword string) error
- func (s *Store) UpdateSpotifyToken(ctx context.Context, code string, oauthToken *oauth2.Token) error
- func (s *Store) UserIsMember(ctx context.Context, roomID string, userID string) (bool, error)
- func (s *Store) ValidatePassword(ctx context.Context, code string, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InsertGuestRequest ¶
type InsertGuestRequest struct {
Name string
}
type InsertRoomParams ¶
type QueuedTrack ¶
type RoomResponse ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddMemberByUsername ¶
func (*Store) DeleteByCode ¶
func (*Store) GetAllMembers ¶
func (*Store) GetAllRoomGuests ¶
func (*Store) GetEncryptedRoomTokens ¶
func (*Store) GetGuestName ¶
func (*Store) GetQueueTrackAddedBy ¶
func (*Store) GetUserHostedRooms ¶
func (*Store) GetUserJoinedRooms ¶
func (*Store) InsertGuest ¶
func (*Store) InsertGuestWithID ¶
func (*Store) MarkTracksAsPlayedSince ¶
func (*Store) RemoveMember ¶
func (*Store) SetModerator ¶
func (*Store) SetQueueTrackGuest ¶
func (*Store) SetQueueTrackUser ¶
func (*Store) UpdatePassword ¶
func (*Store) UpdateSpotifyToken ¶
func (*Store) UserIsMember ¶
Click to show internal directories.
Click to hide internal directories.