Documentation ¶
Index ¶
- type Blogpost
- type CreateBlogPostParams
- type CreateUserParams
- type DBTX
- type DeleteBlogPostParams
- type GetEncryptedPasswordRow
- type GetRefreshTokenRow
- type GetUserRow
- type InsertRefreshTokenParams
- type Queries
- func (q *Queries) CreateBlogPost(ctx context.Context, arg CreateBlogPostParams) (Blogpost, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteAllUsers(ctx context.Context) error
- func (q *Queries) DeleteBlogPost(ctx context.Context, arg DeleteBlogPostParams) error
- func (q *Queries) GetAllBlogPosts(ctx context.Context) ([]Blogpost, error)
- func (q *Queries) GetAllBlogPostsDesc(ctx context.Context) ([]Blogpost, error)
- func (q *Queries) GetBlogPost(ctx context.Context, id uuid.UUID) (Blogpost, error)
- func (q *Queries) GetBlogPostsAsc(ctx context.Context, userID uuid.UUID) ([]Blogpost, error)
- func (q *Queries) GetBlogPostsDesc(ctx context.Context, userID uuid.UUID) ([]Blogpost, error)
- func (q *Queries) GetEncryptedPassword(ctx context.Context, email string) (GetEncryptedPasswordRow, error)
- func (q *Queries) GetRefreshToken(ctx context.Context, token string) (GetRefreshTokenRow, error)
- func (q *Queries) GetUser(ctx context.Context, id uuid.UUID) (GetUserRow, error)
- func (q *Queries) InsertRefreshToken(ctx context.Context, arg InsertRefreshTokenParams) (RefreshToken, error)
- func (q *Queries) RevokeRefreshToken(ctx context.Context, arg RevokeRefreshTokenParams) error
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
- func (q *Queries) UpgradeToChirpyRed(ctx context.Context, id uuid.UUID) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RefreshToken
- type RevokeRefreshTokenParams
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateBlogPostParams ¶
type CreateUserParams ¶
type GetEncryptedPasswordRow ¶
type GetRefreshTokenRow ¶
type GetUserRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateBlogPost ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteBlogPost ¶
func (q *Queries) DeleteBlogPost(ctx context.Context, arg DeleteBlogPostParams) error
func (*Queries) GetAllBlogPosts ¶
func (*Queries) GetAllBlogPostsDesc ¶
func (*Queries) GetBlogPost ¶
func (*Queries) GetBlogPostsAsc ¶
func (*Queries) GetBlogPostsDesc ¶
func (*Queries) GetEncryptedPassword ¶
func (*Queries) GetRefreshToken ¶
func (*Queries) InsertRefreshToken ¶
func (q *Queries) InsertRefreshToken(ctx context.Context, arg InsertRefreshTokenParams) (RefreshToken, error)
func (*Queries) RevokeRefreshToken ¶
func (q *Queries) RevokeRefreshToken(ctx context.Context, arg RevokeRefreshTokenParams) error
func (*Queries) UpdateUser ¶
func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) error
func (*Queries) UpgradeToChirpyRed ¶
type RefreshToken ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.