Documentation
¶
Index ¶
- type CreateFeedFollowParams
- type CreateFeedParams
- type CreatePostParams
- type CreateUserParams
- type DBTX
- type DeleteFeedFollowParams
- type Feed
- type FeedFollow
- type GetFeedFollowsParams
- type GetPostsByFeedIDParams
- type GetPostsByUserParams
- type MarkFeedAsFetchedParams
- type Post
- type Queries
- func (q *Queries) CreateFeed(ctx context.Context, arg CreateFeedParams) (Feed, error)
- func (q *Queries) CreateFeedFollow(ctx context.Context, arg CreateFeedFollowParams) (FeedFollow, error)
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) (Post, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteFeedFollow(ctx context.Context, arg DeleteFeedFollowParams) error
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetFeedByID(ctx context.Context, id uuid.UUID) (Feed, error)
- func (q *Queries) GetFeedByURL(ctx context.Context, url string) (Feed, error)
- func (q *Queries) GetFeedFollows(ctx context.Context, arg GetFeedFollowsParams) (FeedFollow, error)
- func (q *Queries) GetFeedFollowsByUser(ctx context.Context, userID uuid.UUID) ([]Feed, error)
- func (q *Queries) GetFeeds(ctx context.Context) ([]Feed, error)
- func (q *Queries) GetNextFeedsToFetch(ctx context.Context, limit int32) ([]Feed, error)
- func (q *Queries) GetPostByURL(ctx context.Context, url string) (Post, error)
- func (q *Queries) GetPostsByFeedID(ctx context.Context, arg GetPostsByFeedIDParams) ([]Post, error)
- func (q *Queries) GetPostsByUser(ctx context.Context, arg GetPostsByUserParams) ([]Post, error)
- func (q *Queries) GetUser(ctx context.Context, apiKey string) (User, error)
- func (q *Queries) GetUserByName(ctx context.Context, name string) (User, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]User, error)
- func (q *Queries) MarkFeedAsFetched(ctx context.Context, arg MarkFeedAsFetchedParams) (Feed, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateFeedFollowParams ¶
type CreateFeedParams ¶
type CreatePostParams ¶
type CreatePostParams struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
FeedID uuid.UUID `json:"feed_id"`
Title string `json:"title"`
Url string `json:"url"`
Description string `json:"description"`
PublishDate time.Time `json:"publish_date"`
}
type CreateUserParams ¶
type DeleteFeedFollowParams ¶
type Feed ¶
type Feed struct {
ID uuid.UUID `json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
UserID uuid.UUID `json:"user_id"`
Url string `json:"url"`
Title string `json:"title"`
Description string `json:"description"`
LastFetchedAt sql.NullTime `json:"last_fetched_at"`
}
type FeedFollow ¶
type GetFeedFollowsParams ¶
type GetPostsByFeedIDParams ¶
type GetPostsByUserParams ¶
type MarkFeedAsFetchedParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateFeed ¶
func (*Queries) CreateFeedFollow ¶
func (q *Queries) CreateFeedFollow(ctx context.Context, arg CreateFeedFollowParams) (FeedFollow, error)
func (*Queries) CreatePost ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteFeedFollow ¶
func (q *Queries) DeleteFeedFollow(ctx context.Context, arg DeleteFeedFollowParams) error
func (*Queries) GetFeedByID ¶
func (*Queries) GetFeedByURL ¶
func (*Queries) GetFeedFollows ¶
func (q *Queries) GetFeedFollows(ctx context.Context, arg GetFeedFollowsParams) (FeedFollow, error)
func (*Queries) GetFeedFollowsByUser ¶
func (*Queries) GetNextFeedsToFetch ¶
func (*Queries) GetPostByURL ¶
func (*Queries) GetPostsByFeedID ¶
func (*Queries) GetPostsByUser ¶
func (*Queries) GetUserByName ¶
func (*Queries) MarkFeedAsFetched ¶
func (*Queries) UpdateUser ¶
type UpdateUserParams ¶
Click to show internal directories.
Click to hide internal directories.