Documentation ¶
Index ¶
- type CreateListenParams
- type CreateSpotifyAccountParams
- type CreateTwitterAccountParams
- type CreateUserParams
- type DBTX
- type Listen
- type OAuth2Token
- type Querier
- type Queries
- func (q *Queries) CreateListen(ctx context.Context, arg CreateListenParams) error
- func (q *Queries) CreateSpotifyAccount(ctx context.Context, arg CreateSpotifyAccountParams) error
- func (q *Queries) CreateTwitterAccount(ctx context.Context, arg CreateTwitterAccountParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) GetSpotifyAccountsForScanning(ctx context.Context) ([]SpotifyAccount, error)
- func (q *Queries) GetTwitterAccount(ctx context.Context, twitterUserID string) (TwitterAccount, error)
- func (q *Queries) GetUser(ctx context.Context, id string) (User, error)
- func (q *Queries) ListListensForUser(ctx context.Context, userID string) ([]Listen, error)
- func (q *Queries) SelectSpotifyAccountForUpdate(ctx context.Context, spotifyUserID string) (SpotifyAccount, error)
- func (q *Queries) UpdateSpotifyAccountListenedAt(ctx context.Context, arg UpdateSpotifyAccountListenedAtParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SpotifyAccount
- type TXQuerier
- type TwitterAccount
- type UpdateSpotifyAccountListenedAtParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateListenParams ¶
type CreateSpotifyAccountParams ¶
type CreateSpotifyAccountParams struct { SpotifyUserID string UserID string OauthToken OAuth2Token CreatedAt time.Time }
type CreateTwitterAccountParams ¶
type CreateTwitterAccountParams struct { TwitterUserID string UserID string OauthToken OAuth2Token CreatedAt time.Time }
type CreateUserParams ¶
type OAuth2Token ¶
func (*OAuth2Token) Scan ¶
func (dst *OAuth2Token) Scan(src interface{}) error
Scan implements the database/sql Scanner interface.
type Querier ¶
type Querier interface { CreateListen(ctx context.Context, arg CreateListenParams) error CreateSpotifyAccount(ctx context.Context, arg CreateSpotifyAccountParams) error CreateTwitterAccount(ctx context.Context, arg CreateTwitterAccountParams) error CreateUser(ctx context.Context, arg CreateUserParams) error GetSpotifyAccountsForScanning(ctx context.Context) ([]SpotifyAccount, error) GetTwitterAccount(ctx context.Context, twitterUserID string) (TwitterAccount, error) GetUser(ctx context.Context, id string) (User, error) ListListensForUser(ctx context.Context, userID string) ([]Listen, error) SelectSpotifyAccountForUpdate(ctx context.Context, spotifyUserID string) (SpotifyAccount, error) UpdateSpotifyAccountListenedAt(ctx context.Context, arg UpdateSpotifyAccountListenedAtParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateListen ¶
func (q *Queries) CreateListen(ctx context.Context, arg CreateListenParams) error
func (*Queries) CreateSpotifyAccount ¶
func (q *Queries) CreateSpotifyAccount(ctx context.Context, arg CreateSpotifyAccountParams) error
func (*Queries) CreateTwitterAccount ¶
func (q *Queries) CreateTwitterAccount(ctx context.Context, arg CreateTwitterAccountParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) GetSpotifyAccountsForScanning ¶
func (q *Queries) GetSpotifyAccountsForScanning(ctx context.Context) ([]SpotifyAccount, error)
func (*Queries) GetTwitterAccount ¶
func (*Queries) ListListensForUser ¶
func (*Queries) SelectSpotifyAccountForUpdate ¶
func (*Queries) UpdateSpotifyAccountListenedAt ¶
func (q *Queries) UpdateSpotifyAccountListenedAt(ctx context.Context, arg UpdateSpotifyAccountListenedAtParams) error
type SpotifyAccount ¶
type TXQuerier ¶
type TXQuerier interface { Querier BeginTx(ctx context.Context) (func(ctx context.Context) error, func(ctx context.Context) error, TXQuerier, error) }
func NewQueries ¶
func NewQueries(db dbtxer) TXQuerier
type TwitterAccount ¶
type TwitterAccount struct { TwitterUserID string UserID string OauthToken OAuth2Token CreatedAt time.Time }
Click to show internal directories.
Click to hide internal directories.