Documentation
¶
Index ¶
- type DBTX
- type Feed
- type FeedFetch
- type FeedFetchStatus
- type InsertFeedFetchParams
- type InsertFeedParams
- type InsertPostFavoriteParams
- type InsertPostFetchParams
- type InsertPostParams
- type InsertPostSummaryParams
- type NullFeedFetchStatus
- type NullPostFetchStatus
- type NullPostStatus
- type Post
- type PostFavorite
- type PostFetch
- type PostFetchStatus
- type PostStatus
- type PostSummary
- type Queries
- func (q *Queries) DeleteFeed(ctx context.Context, feedID string) error
- func (q *Queries) DeleteOldNonFavoritePosts(ctx context.Context, thresholdDate time.Time) (int64, error)
- func (q *Queries) DeletePostFavorite(ctx context.Context, postFavoriteID string) error
- func (q *Queries) InsertFeed(ctx context.Context, arg InsertFeedParams) error
- func (q *Queries) InsertFeedFetch(ctx context.Context, arg InsertFeedFetchParams) error
- func (q *Queries) InsertPost(ctx context.Context, arg InsertPostParams) error
- func (q *Queries) InsertPostFavorite(ctx context.Context, arg InsertPostFavoriteParams) error
- func (q *Queries) InsertPostFetch(ctx context.Context, arg InsertPostFetchParams) error
- func (q *Queries) InsertPostSummary(ctx context.Context, arg InsertPostSummaryParams) error
- func (q *Queries) SelectFeed(ctx context.Context, feedID string) (Feed, error)
- func (q *Queries) SelectFeedForUpdate(ctx context.Context, feedID string) (Feed, error)
- func (q *Queries) SelectFeedMaxIdx(ctx context.Context) (int32, error)
- func (q *Queries) SelectFeeds(ctx context.Context, feedIds []string) ([]Feed, error)
- func (q *Queries) SelectFeedsOrderByIdxAsc(ctx context.Context) ([]Feed, error)
- func (q *Queries) SelectPost(ctx context.Context, postID string) (Post, error)
- func (q *Queries) SelectPostFavorite(ctx context.Context, postFavoriteID string) (PostFavorite, error)
- func (q *Queries) SelectPostFavoritesByPostIDs(ctx context.Context, postIds []string) ([]PostFavorite, error)
- func (q *Queries) SelectPostForUpdate(ctx context.Context, postID string) (Post, error)
- func (q *Queries) SelectPostSummariesByPostIDs(ctx context.Context, postIds []string) ([]PostSummary, error)
- func (q *Queries) SelectPosts(ctx context.Context, arg SelectPostsParams) ([]SelectPostsRow, error)
- func (q *Queries) SelectRecentlyNotFetchedFeeds(ctx context.Context, lastFetchedAtThreshold time.Time) ([]Feed, error)
- func (q *Queries) UpdateFeedIdx(ctx context.Context, arg UpdateFeedIdxParams) error
- func (q *Queries) UpdateFeedIdxesDecrement(ctx context.Context, arg UpdateFeedIdxesDecrementParams) error
- func (q *Queries) UpdateFeedIdxesIncrement(ctx context.Context, arg UpdateFeedIdxesIncrementParams) error
- func (q *Queries) UpdateFeedLastFetchedAt(ctx context.Context, arg UpdateFeedLastFetchedAtParams) error
- func (q *Queries) UpdateFeedTitle(ctx context.Context, arg UpdateFeedTitleParams) error
- func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SelectPostsParams
- type SelectPostsRow
- type UpdateFeedIdxParams
- type UpdateFeedIdxesDecrementParams
- type UpdateFeedIdxesIncrementParams
- type UpdateFeedLastFetchedAtParams
- type UpdateFeedTitleParams
- type UpdatePostParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedFetchStatus ¶
type FeedFetchStatus string
const ( FeedFetchStatusSuccess FeedFetchStatus = "Success" FeedFetchStatusFailure FeedFetchStatus = "Failure" )
func (*FeedFetchStatus) Scan ¶
func (e *FeedFetchStatus) Scan(src interface{}) error
type InsertFeedFetchParams ¶
type InsertFeedParams ¶
type InsertPostFetchParams ¶
type InsertPostParams ¶
type InsertPostSummaryParams ¶
type NullFeedFetchStatus ¶
type NullFeedFetchStatus struct {
FeedFetchStatus FeedFetchStatus
Valid bool // Valid is true if FeedFetchStatus is not NULL
}
func (*NullFeedFetchStatus) Scan ¶
func (ns *NullFeedFetchStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullPostFetchStatus ¶
type NullPostFetchStatus struct {
PostFetchStatus PostFetchStatus
Valid bool // Valid is true if PostFetchStatus is not NULL
}
func (*NullPostFetchStatus) Scan ¶
func (ns *NullPostFetchStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullPostStatus ¶
type NullPostStatus struct {
PostStatus PostStatus
Valid bool // Valid is true if PostStatus is not NULL
}
func (*NullPostStatus) Scan ¶
func (ns *NullPostStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type PostFavorite ¶
type PostFetchStatus ¶
type PostFetchStatus string
const ( PostFetchStatusSuccess PostFetchStatus = "Success" PostFetchStatusFailure PostFetchStatus = "Failure" )
func (*PostFetchStatus) Scan ¶
func (e *PostFetchStatus) Scan(src interface{}) error
type PostStatus ¶
type PostStatus string
const ( PostStatusRegistered PostStatus = "Registered" PostStatusFetched PostStatus = "Fetched" PostStatusSummarized PostStatus = "Summarized" )
func (*PostStatus) Scan ¶
func (e *PostStatus) Scan(src interface{}) error
type PostSummary ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteOldNonFavoritePosts ¶
func (*Queries) DeletePostFavorite ¶
func (*Queries) InsertFeed ¶
func (q *Queries) InsertFeed(ctx context.Context, arg InsertFeedParams) error
func (*Queries) InsertFeedFetch ¶
func (q *Queries) InsertFeedFetch(ctx context.Context, arg InsertFeedFetchParams) error
func (*Queries) InsertPost ¶
func (q *Queries) InsertPost(ctx context.Context, arg InsertPostParams) error
func (*Queries) InsertPostFavorite ¶
func (q *Queries) InsertPostFavorite(ctx context.Context, arg InsertPostFavoriteParams) error
func (*Queries) InsertPostFetch ¶
func (q *Queries) InsertPostFetch(ctx context.Context, arg InsertPostFetchParams) error
func (*Queries) InsertPostSummary ¶
func (q *Queries) InsertPostSummary(ctx context.Context, arg InsertPostSummaryParams) error
func (*Queries) SelectFeed ¶
func (*Queries) SelectFeedForUpdate ¶
func (*Queries) SelectFeedMaxIdx ¶
func (*Queries) SelectFeeds ¶
func (*Queries) SelectFeedsOrderByIdxAsc ¶
func (*Queries) SelectPost ¶
func (*Queries) SelectPostFavorite ¶
func (*Queries) SelectPostFavoritesByPostIDs ¶
func (*Queries) SelectPostForUpdate ¶
func (*Queries) SelectPostSummariesByPostIDs ¶
func (*Queries) SelectPosts ¶
func (q *Queries) SelectPosts(ctx context.Context, arg SelectPostsParams) ([]SelectPostsRow, error)
func (*Queries) SelectRecentlyNotFetchedFeeds ¶
func (*Queries) UpdateFeedIdx ¶
func (q *Queries) UpdateFeedIdx(ctx context.Context, arg UpdateFeedIdxParams) error
func (*Queries) UpdateFeedIdxesDecrement ¶
func (q *Queries) UpdateFeedIdxesDecrement(ctx context.Context, arg UpdateFeedIdxesDecrementParams) error
func (*Queries) UpdateFeedIdxesIncrement ¶
func (q *Queries) UpdateFeedIdxesIncrement(ctx context.Context, arg UpdateFeedIdxesIncrementParams) error
func (*Queries) UpdateFeedLastFetchedAt ¶
func (q *Queries) UpdateFeedLastFetchedAt(ctx context.Context, arg UpdateFeedLastFetchedAtParams) error
func (*Queries) UpdateFeedTitle ¶
func (q *Queries) UpdateFeedTitle(ctx context.Context, arg UpdateFeedTitleParams) error
func (*Queries) UpdatePost ¶
func (q *Queries) UpdatePost(ctx context.Context, arg UpdatePostParams) error
type SelectPostsParams ¶
type SelectPostsRow ¶
type UpdateFeedIdxParams ¶
type UpdateFeedTitleParams ¶
Click to show internal directories.
Click to hide internal directories.