Documentation ¶
Index ¶
- type AddAuthorBlockParams
- type AddAuthorParams
- type AddAuthorToClusterParams
- type AddClusterParams
- type AddImageParams
- type AddLabelParams
- type AddLikeToPostParams
- type AddPostLabelParams
- type AddPostParams
- type AssignLabelToAuthorParams
- type Author
- type AuthorBlock
- type AuthorCluster
- type AuthorLabel
- type AuthorStat
- type Cluster
- type DBTX
- type GetAllLabelsParams
- type GetAllLabelsRow
- type GetAllTimeBangersParams
- type GetAllTimeBangersRow
- type GetAuthorBlockParams
- type GetAuthorsByHandleRow
- type GetBangersForAuthorParams
- type GetBangersForAuthorRow
- type GetBlocksForTargetParams
- type GetImageParams
- type GetLabelsForAuthorRow
- type GetLabelsParams
- type GetMembersOfAuthorLabelRow
- type GetMembersOfClusterRow
- type GetOldestPresentParentRow
- type GetOnlyPostsPageByAuthorLabelAliasFromViewParams
- type GetOnlyPostsPageByAuthorLabelAliasParams
- type GetPostPageCursorParams
- type GetPostPageCursorRow
- type GetPostPageParams
- type GetPostPageRow
- type GetPostRow
- type GetPostWithAuthorHandleRow
- type GetPostsPageByAuthorLabelAliasFromViewParams
- type GetPostsPageByAuthorLabelAliasParams
- type GetPostsPageByClusterAliasFromViewParams
- type GetPostsPageByClusterAliasFromViewRow
- type GetPostsPageByClusterAliasParams
- type GetPostsPageByClusterAliasRow
- type GetPostsPageWithAnyPostLabelParams
- type GetPostsPageWithAnyPostLabelRow
- type GetPostsPageWithAnyPostLabelSortedByHotnessParams
- type GetPostsPageWithAnyPostLabelSortedByHotnessRow
- type GetPostsPageWithPostLabelChronologicalParams
- type GetPostsPageWithPostLabelChronologicalRow
- type GetPostsPageWithPostLabelParams
- type GetPostsPageWithPostLabelRow
- type GetPostsPageWithPostLabelSortedByHotnessParams
- type GetPostsPageWithPostLabelSortedByHotnessRow
- type GetThreadViewParams
- type GetThreadViewRow
- type GetUnindexedPostPageParams
- type Image
- type Label
- type Post
- type PostHotness
- type PostLabel
- type PostLike
- type Queries
- func (q *Queries) AddAuthor(ctx context.Context, arg AddAuthorParams) error
- func (q *Queries) AddAuthorBlock(ctx context.Context, arg AddAuthorBlockParams) error
- func (q *Queries) AddAuthorToCluster(ctx context.Context, arg AddAuthorToClusterParams) error
- func (q *Queries) AddCluster(ctx context.Context, arg AddClusterParams) (Cluster, error)
- func (q *Queries) AddImage(ctx context.Context, arg AddImageParams) error
- func (q *Queries) AddLabel(ctx context.Context, arg AddLabelParams) (Label, error)
- func (q *Queries) AddLabelsToPosts(ctx context.Context, dollar_1 json.RawMessage) error
- func (q *Queries) AddLikeToPost(ctx context.Context, arg AddLikeToPostParams) error
- func (q *Queries) AddPost(ctx context.Context, arg AddPostParams) error
- func (q *Queries) AddPostLabel(ctx context.Context, arg AddPostLabelParams) error
- func (q *Queries) AssignLabelToAuthor(ctx context.Context, arg AssignLabelToAuthorParams) error
- func (q *Queries) Close() error
- func (q *Queries) GetAllLabels(ctx context.Context, arg GetAllLabelsParams) ([]GetAllLabelsRow, error)
- func (q *Queries) GetAllTimeBangers(ctx context.Context, arg GetAllTimeBangersParams) ([]GetAllTimeBangersRow, error)
- func (q *Queries) GetAllUniquePostLabels(ctx context.Context) ([]string, error)
- func (q *Queries) GetAuthor(ctx context.Context, did string) (Author, error)
- func (q *Queries) GetAuthorBlock(ctx context.Context, arg GetAuthorBlockParams) (AuthorBlock, error)
- func (q *Queries) GetAuthorStats(ctx context.Context) (AuthorStat, error)
- func (q *Queries) GetAuthorsByHandle(ctx context.Context, handle string) ([]GetAuthorsByHandleRow, error)
- func (q *Queries) GetBangersForAuthor(ctx context.Context, arg GetBangersForAuthorParams) ([]GetBangersForAuthorRow, error)
- func (q *Queries) GetBlockedByCountForTarget(ctx context.Context, targetDid string) (int64, error)
- func (q *Queries) GetBlocksForTarget(ctx context.Context, arg GetBlocksForTargetParams) ([]AuthorBlock, error)
- func (q *Queries) GetClusters(ctx context.Context) ([]Cluster, error)
- func (q *Queries) GetImage(ctx context.Context, arg GetImageParams) (Image, error)
- func (q *Queries) GetImagesForAuthorDID(ctx context.Context, authorDid string) ([]Image, error)
- func (q *Queries) GetImagesForPost(ctx context.Context, postID string) ([]Image, error)
- func (q *Queries) GetLabelByAlias(ctx context.Context, lookupAlias string) (Label, error)
- func (q *Queries) GetLabels(ctx context.Context, arg GetLabelsParams) ([]Label, error)
- func (q *Queries) GetLabelsForAuthor(ctx context.Context, authorDid string) ([]GetLabelsForAuthorRow, error)
- func (q *Queries) GetMembersOfAuthorLabel(ctx context.Context, labelID int64) ([]GetMembersOfAuthorLabelRow, error)
- func (q *Queries) GetMembersOfCluster(ctx context.Context, clusterID int32) ([]GetMembersOfClusterRow, error)
- func (q *Queries) GetOldestPresentParent(ctx context.Context, id string) (GetOldestPresentParentRow, error)
- func (q *Queries) GetOnlyPostsPageByAuthorLabelAlias(ctx context.Context, arg GetOnlyPostsPageByAuthorLabelAliasParams) ([]Post, error)
- func (q *Queries) GetOnlyPostsPageByAuthorLabelAliasFromView(ctx context.Context, arg GetOnlyPostsPageByAuthorLabelAliasFromViewParams) ([]PostHotness, error)
- func (q *Queries) GetOptedOutAuthors(ctx context.Context) ([]Author, error)
- func (q *Queries) GetPost(ctx context.Context, id string) (GetPostRow, error)
- func (q *Queries) GetPostPage(ctx context.Context, arg GetPostPageParams) ([]GetPostPageRow, error)
- func (q *Queries) GetPostPageCursor(ctx context.Context, arg GetPostPageCursorParams) ([]GetPostPageCursorRow, error)
- func (q *Queries) GetPostWithAuthorHandle(ctx context.Context, id string) (GetPostWithAuthorHandleRow, error)
- func (q *Queries) GetPostsPageByAuthorLabelAlias(ctx context.Context, arg GetPostsPageByAuthorLabelAliasParams) ([]Post, error)
- func (q *Queries) GetPostsPageByAuthorLabelAliasFromView(ctx context.Context, arg GetPostsPageByAuthorLabelAliasFromViewParams) ([]PostHotness, error)
- func (q *Queries) GetPostsPageByClusterAlias(ctx context.Context, arg GetPostsPageByClusterAliasParams) ([]GetPostsPageByClusterAliasRow, error)
- func (q *Queries) GetPostsPageByClusterAliasFromView(ctx context.Context, arg GetPostsPageByClusterAliasFromViewParams) ([]GetPostsPageByClusterAliasFromViewRow, error)
- func (q *Queries) GetPostsPageWithAnyPostLabel(ctx context.Context, arg GetPostsPageWithAnyPostLabelParams) ([]GetPostsPageWithAnyPostLabelRow, error)
- func (q *Queries) GetPostsPageWithAnyPostLabelSortedByHotness(ctx context.Context, arg GetPostsPageWithAnyPostLabelSortedByHotnessParams) ([]GetPostsPageWithAnyPostLabelSortedByHotnessRow, error)
- func (q *Queries) GetPostsPageWithPostLabel(ctx context.Context, arg GetPostsPageWithPostLabelParams) ([]GetPostsPageWithPostLabelRow, error)
- func (q *Queries) GetPostsPageWithPostLabelChronological(ctx context.Context, arg GetPostsPageWithPostLabelChronologicalParams) ([]GetPostsPageWithPostLabelChronologicalRow, error)
- func (q *Queries) GetPostsPageWithPostLabelSortedByHotness(ctx context.Context, arg GetPostsPageWithPostLabelSortedByHotnessParams) ([]GetPostsPageWithPostLabelSortedByHotnessRow, error)
- func (q *Queries) GetThreadView(ctx context.Context, arg GetThreadViewParams) ([]GetThreadViewRow, error)
- func (q *Queries) GetTopPosters(ctx context.Context, limit int32) ([]TopPoster, error)
- func (q *Queries) GetUnindexedPostPage(ctx context.Context, arg GetUnindexedPostPageParams) ([]Post, error)
- func (q *Queries) GetUnprocessedImages(ctx context.Context, limit int32) ([]Image, error)
- func (q *Queries) RemoveAuthorBlock(ctx context.Context, arg RemoveAuthorBlockParams) error
- func (q *Queries) RemoveLikeFromPost(ctx context.Context, postID string) error
- func (q *Queries) SetPostIndexedTimestamp(ctx context.Context, arg SetPostIndexedTimestampParams) error
- func (q *Queries) SetPostSentiment(ctx context.Context, arg SetPostSentimentParams) error
- func (q *Queries) UnassignLabelFromAuthor(ctx context.Context, arg UnassignLabelFromAuthorParams) error
- func (q *Queries) UpdateAuthorOptOut(ctx context.Context, arg UpdateAuthorOptOutParams) error
- func (q *Queries) UpdateImage(ctx context.Context, arg UpdateImageParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RemoveAuthorBlockParams
- type SetPostIndexedTimestampParams
- type SetPostSentimentParams
- type TopPoster
- type UnassignLabelFromAuthorParams
- type UpdateAuthorOptOutParams
- type UpdateImageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAuthorBlockParams ¶
type AddAuthorParams ¶
type AddClusterParams ¶
type AddImageParams ¶
type AddImageParams struct { Cid string `json:"cid"` PostID string `json:"post_id"` AuthorDid string `json:"author_did"` AltText sql.NullString `json:"alt_text"` MimeType string `json:"mime_type"` CreatedAt time.Time `json:"created_at"` CvCompleted bool `json:"cv_completed"` CvRunAt sql.NullTime `json:"cv_run_at"` CvClasses pqtype.NullRawMessage `json:"cv_classes"` }
type AddLabelParams ¶
type AddLikeToPostParams ¶
type AddLikeToPostParams struct { PostID string `json:"post_id"` AuthorDid sql.NullString `json:"author_did"` }
type AddPostLabelParams ¶
type AddPostParams ¶
type AddPostParams struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` }
type AuthorBlock ¶
type AuthorCluster ¶
type AuthorLabel ¶
type AuthorStat ¶
type AuthorStat struct { TotalAuthors int64 `json:"total_authors"` TotalPosts int64 `json:"total_posts"` MeanPostsPerAuthor float64 `json:"mean_posts_per_author"` Gt1 int64 `json:"gt_1"` Gt5 int64 `json:"gt_5"` Gt10 int64 `json:"gt_10"` Gt20 int64 `json:"gt_20"` Gt100 int64 `json:"gt_100"` Gt1000 int64 `json:"gt_1000"` P25 int64 `json:"p25"` P50 int64 `json:"p50"` P75 int64 `json:"p75"` P90 int64 `json:"p90"` P95 int64 `json:"p95"` P99 int64 `json:"p99"` P995 int64 `json:"p99_5"` P997 int64 `json:"p99_7"` P999 int64 `json:"p99_9"` P9999 int64 `json:"p99_99"` }
type GetAllLabelsParams ¶
type GetAllLabelsRow ¶
type GetAllTimeBangersParams ¶
type GetAllTimeBangersRow ¶
type GetAllTimeBangersRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` LikeCount int64 `json:"like_count"` }
type GetAuthorBlockParams ¶
type GetAuthorsByHandleRow ¶
type GetBangersForAuthorRow ¶
type GetBangersForAuthorRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` LikeCount int64 `json:"like_count"` }
type GetImageParams ¶
type GetLabelsForAuthorRow ¶
type GetLabelsParams ¶
type GetMembersOfClusterRow ¶
type GetOldestPresentParentRow ¶
type GetOldestPresentParentRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` }
type GetOnlyPostsPageByAuthorLabelAliasFromViewParams ¶
type GetOnlyPostsPageByAuthorLabelAliasFromViewParams struct { LookupAlias interface{} `json:"lookup_alias"` Cursor interface{} `json:"cursor"` Limit int32 `json:"limit"` }
type GetPostPageCursorParams ¶
type GetPostPageCursorRow ¶
type GetPostPageCursorRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` Labels interface{} `json:"labels"` }
type GetPostPageParams ¶
type GetPostPageRow ¶
type GetPostPageRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` Labels interface{} `json:"labels"` }
type GetPostRow ¶
type GetPostRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` Images interface{} `json:"images"` }
type GetPostWithAuthorHandleRow ¶
type GetPostWithAuthorHandleRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` Handle sql.NullString `json:"handle"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` Images interface{} `json:"images"` }
type GetPostsPageByAuthorLabelAliasFromViewParams ¶
type GetPostsPageByAuthorLabelAliasFromViewParams struct { LookupAlias interface{} `json:"lookup_alias"` Cursor interface{} `json:"cursor"` Limit int32 `json:"limit"` }
type GetPostsPageByClusterAliasFromViewParams ¶
type GetPostsPageByClusterAliasFromViewParams struct { ClusterLabel sql.NullString `json:"cluster_label"` CreatedAt time.Time `json:"created_at"` Limit int32 `json:"limit"` }
type GetPostsPageByClusterAliasFromViewRow ¶
type GetPostsPageByClusterAliasFromViewRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` Hotness float64 `json:"hotness"` }
type GetPostsPageByClusterAliasRow ¶
type GetPostsPageByClusterAliasRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` }
type GetPostsPageWithAnyPostLabelRow ¶
type GetPostsPageWithAnyPostLabelRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` }
type GetPostsPageWithAnyPostLabelSortedByHotnessRow ¶
type GetPostsPageWithAnyPostLabelSortedByHotnessRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` Hotness float64 `json:"hotness"` }
type GetPostsPageWithPostLabelChronologicalRow ¶
type GetPostsPageWithPostLabelChronologicalRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` Labels json.RawMessage `json:"labels"` }
type GetPostsPageWithPostLabelRow ¶
type GetPostsPageWithPostLabelRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` }
type GetPostsPageWithPostLabelSortedByHotnessRow ¶
type GetPostsPageWithPostLabelSortedByHotnessRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` Hotness float64 `json:"hotness"` }
type GetThreadViewParams ¶
type GetThreadViewRow ¶
type GetThreadViewRow struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` Handle sql.NullString `json:"handle"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` ParentRelationship sql.NullString `json:"parent_relationship"` Depth int32 `json:"depth"` }
type Image ¶
type Image struct { Cid string `json:"cid"` PostID string `json:"post_id"` AuthorDid string `json:"author_did"` AltText sql.NullString `json:"alt_text"` MimeType string `json:"mime_type"` CreatedAt time.Time `json:"created_at"` CvCompleted bool `json:"cv_completed"` CvRunAt sql.NullTime `json:"cv_run_at"` CvClasses pqtype.NullRawMessage `json:"cv_classes"` }
type Post ¶
type Post struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` IndexedAt sql.NullTime `json:"indexed_at"` }
type PostHotness ¶
type PostHotness struct { ID string `json:"id"` Text string `json:"text"` ParentPostID sql.NullString `json:"parent_post_id"` RootPostID sql.NullString `json:"root_post_id"` AuthorDid string `json:"author_did"` CreatedAt time.Time `json:"created_at"` HasEmbeddedMedia bool `json:"has_embedded_media"` ParentRelationship sql.NullString `json:"parent_relationship"` Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` PostLabels interface{} `json:"post_labels"` ClusterLabel sql.NullString `json:"cluster_label"` AuthorLabels interface{} `json:"author_labels"` Hotness float64 `json:"hotness"` }
type PostLike ¶
type PostLike struct { PostID string `json:"post_id"` AuthorDid sql.NullString `json:"author_did"` LikeCount int64 `json:"like_count"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddAuthor ¶
func (q *Queries) AddAuthor(ctx context.Context, arg AddAuthorParams) error
func (*Queries) AddAuthorBlock ¶
func (q *Queries) AddAuthorBlock(ctx context.Context, arg AddAuthorBlockParams) error
func (*Queries) AddAuthorToCluster ¶
func (q *Queries) AddAuthorToCluster(ctx context.Context, arg AddAuthorToClusterParams) error
func (*Queries) AddCluster ¶
func (*Queries) AddImage ¶
func (q *Queries) AddImage(ctx context.Context, arg AddImageParams) error
func (*Queries) AddLabelsToPosts ¶
func (*Queries) AddLikeToPost ¶
func (q *Queries) AddLikeToPost(ctx context.Context, arg AddLikeToPostParams) error
func (*Queries) AddPostLabel ¶
func (q *Queries) AddPostLabel(ctx context.Context, arg AddPostLabelParams) error
func (*Queries) AssignLabelToAuthor ¶
func (q *Queries) AssignLabelToAuthor(ctx context.Context, arg AssignLabelToAuthorParams) error
func (*Queries) GetAllLabels ¶
func (q *Queries) GetAllLabels(ctx context.Context, arg GetAllLabelsParams) ([]GetAllLabelsRow, error)
func (*Queries) GetAllTimeBangers ¶
func (q *Queries) GetAllTimeBangers(ctx context.Context, arg GetAllTimeBangersParams) ([]GetAllTimeBangersRow, error)
func (*Queries) GetAllUniquePostLabels ¶
func (*Queries) GetAuthorBlock ¶
func (q *Queries) GetAuthorBlock(ctx context.Context, arg GetAuthorBlockParams) (AuthorBlock, error)
func (*Queries) GetAuthorStats ¶
func (q *Queries) GetAuthorStats(ctx context.Context) (AuthorStat, error)
func (*Queries) GetAuthorsByHandle ¶
func (*Queries) GetBangersForAuthor ¶
func (q *Queries) GetBangersForAuthor(ctx context.Context, arg GetBangersForAuthorParams) ([]GetBangersForAuthorRow, error)
func (*Queries) GetBlockedByCountForTarget ¶
func (*Queries) GetBlocksForTarget ¶
func (q *Queries) GetBlocksForTarget(ctx context.Context, arg GetBlocksForTargetParams) ([]AuthorBlock, error)
GetBlocksForTarget returns a page of blocks for a given target DID. The blocks are ordered by the created_at timestamp ascending.
func (*Queries) GetImagesForAuthorDID ¶
func (*Queries) GetImagesForPost ¶
func (*Queries) GetLabelByAlias ¶
func (*Queries) GetLabelsForAuthor ¶
func (*Queries) GetMembersOfAuthorLabel ¶
func (*Queries) GetMembersOfCluster ¶
func (*Queries) GetOldestPresentParent ¶
func (*Queries) GetOnlyPostsPageByAuthorLabelAlias ¶
func (*Queries) GetOnlyPostsPageByAuthorLabelAliasFromView ¶
func (q *Queries) GetOnlyPostsPageByAuthorLabelAliasFromView(ctx context.Context, arg GetOnlyPostsPageByAuthorLabelAliasFromViewParams) ([]PostHotness, error)
func (*Queries) GetOptedOutAuthors ¶
func (*Queries) GetPostPage ¶
func (q *Queries) GetPostPage(ctx context.Context, arg GetPostPageParams) ([]GetPostPageRow, error)
func (*Queries) GetPostPageCursor ¶
func (q *Queries) GetPostPageCursor(ctx context.Context, arg GetPostPageCursorParams) ([]GetPostPageCursorRow, error)
func (*Queries) GetPostWithAuthorHandle ¶
func (*Queries) GetPostsPageByAuthorLabelAlias ¶
func (*Queries) GetPostsPageByAuthorLabelAliasFromView ¶
func (q *Queries) GetPostsPageByAuthorLabelAliasFromView(ctx context.Context, arg GetPostsPageByAuthorLabelAliasFromViewParams) ([]PostHotness, error)
func (*Queries) GetPostsPageByClusterAlias ¶
func (q *Queries) GetPostsPageByClusterAlias(ctx context.Context, arg GetPostsPageByClusterAliasParams) ([]GetPostsPageByClusterAliasRow, error)
func (*Queries) GetPostsPageByClusterAliasFromView ¶
func (q *Queries) GetPostsPageByClusterAliasFromView(ctx context.Context, arg GetPostsPageByClusterAliasFromViewParams) ([]GetPostsPageByClusterAliasFromViewRow, error)
func (*Queries) GetPostsPageWithAnyPostLabel ¶
func (q *Queries) GetPostsPageWithAnyPostLabel(ctx context.Context, arg GetPostsPageWithAnyPostLabelParams) ([]GetPostsPageWithAnyPostLabelRow, error)
func (*Queries) GetPostsPageWithAnyPostLabelSortedByHotness ¶
func (q *Queries) GetPostsPageWithAnyPostLabelSortedByHotness(ctx context.Context, arg GetPostsPageWithAnyPostLabelSortedByHotnessParams) ([]GetPostsPageWithAnyPostLabelSortedByHotnessRow, error)
func (*Queries) GetPostsPageWithPostLabel ¶
func (q *Queries) GetPostsPageWithPostLabel(ctx context.Context, arg GetPostsPageWithPostLabelParams) ([]GetPostsPageWithPostLabelRow, error)
func (*Queries) GetPostsPageWithPostLabelChronological ¶
func (q *Queries) GetPostsPageWithPostLabelChronological(ctx context.Context, arg GetPostsPageWithPostLabelChronologicalParams) ([]GetPostsPageWithPostLabelChronologicalRow, error)
func (*Queries) GetPostsPageWithPostLabelSortedByHotness ¶
func (q *Queries) GetPostsPageWithPostLabelSortedByHotness(ctx context.Context, arg GetPostsPageWithPostLabelSortedByHotnessParams) ([]GetPostsPageWithPostLabelSortedByHotnessRow, error)
func (*Queries) GetThreadView ¶
func (q *Queries) GetThreadView(ctx context.Context, arg GetThreadViewParams) ([]GetThreadViewRow, error)
func (*Queries) GetTopPosters ¶
func (*Queries) GetUnindexedPostPage ¶
func (*Queries) GetUnprocessedImages ¶
func (*Queries) RemoveAuthorBlock ¶
func (q *Queries) RemoveAuthorBlock(ctx context.Context, arg RemoveAuthorBlockParams) error
func (*Queries) RemoveLikeFromPost ¶
func (*Queries) SetPostIndexedTimestamp ¶
func (q *Queries) SetPostIndexedTimestamp(ctx context.Context, arg SetPostIndexedTimestampParams) error
func (*Queries) SetPostSentiment ¶
func (q *Queries) SetPostSentiment(ctx context.Context, arg SetPostSentimentParams) error
func (*Queries) UnassignLabelFromAuthor ¶
func (q *Queries) UnassignLabelFromAuthor(ctx context.Context, arg UnassignLabelFromAuthorParams) error
func (*Queries) UpdateAuthorOptOut ¶
func (q *Queries) UpdateAuthorOptOut(ctx context.Context, arg UpdateAuthorOptOutParams) error
func (*Queries) UpdateImage ¶
func (q *Queries) UpdateImage(ctx context.Context, arg UpdateImageParams) error
type RemoveAuthorBlockParams ¶
type SetPostSentimentParams ¶
type SetPostSentimentParams struct { Sentiment sql.NullString `json:"sentiment"` SentimentConfidence sql.NullFloat64 `json:"sentiment_confidence"` ID string `json:"id"` AuthorDid string `json:"author_did"` }
type UpdateImageParams ¶
type UpdateImageParams struct { Cid string `json:"cid"` PostID string `json:"post_id"` AuthorDid string `json:"author_did"` AltText sql.NullString `json:"alt_text"` MimeType string `json:"mime_type"` CreatedAt time.Time `json:"created_at"` CvCompleted bool `json:"cv_completed"` CvRunAt sql.NullTime `json:"cv_run_at"` CvClasses pqtype.NullRawMessage `json:"cv_classes"` }
Source Files ¶
- add_author.sql.go
- add_author_to_cluster.sql.go
- add_block.sql.go
- add_cluster.sql.go
- add_image.sql.go
- add_label.sql.go
- add_labels_to_posts.sql.go
- add_post.sql.go
- add_post_label.sql.go
- add_post_like.sql.go
- add_sentiment.sql.go
- all_time_bangers.sql.go
- assign_label_to_author.sql.go
- bangers.sql.go
- db.go
- get_author.sql.go
- get_author_stats.sql.go
- get_authors_by_handle.sql.go
- get_block.sql.go
- get_block_count_for_target.sql.go
- get_blocks_for_target.sql.go
- get_cluster_aliases.sql.go
- get_cluster_members.sql.go
- get_image.sql.go
- get_images_for_author_did.sql.go
- get_images_for_post.sql.go
- get_label_aliases.sql.go
- get_label_by_alias.sql.go
- get_label_members.sql.go
- get_labels.sql.go
- get_labels_for_author.sql.go
- get_oldest_parent.sql.go
- get_opted_out_authors.sql.go
- get_post.sql.go
- get_post_page.sql.go
- get_post_page_cursor.sql.go
- get_post_w_author_handle.sql.go
- get_post_with_label_chronological.sql.go
- get_posts_from_cluster.sql.go
- get_posts_from_cluster_view.sql.go
- get_posts_from_label.sql.go
- get_posts_from_label_view.sql.go
- get_posts_with_any_label.sql.go
- get_posts_with_any_labels_sorted_by_hotness.sql.go
- get_posts_with_label.sql.go
- get_posts_with_label_by_hotness.sql.go
- get_thread_view.sql.go
- get_top_posters.sql.go
- get_unindexed_page.sql.go
- get_unique_labels.sql.go
- get_unprocessed_images.sql.go
- models.go
- remove_block.sql.go
- remove_post_like.sql.go
- set_indexed_timestamp.sql.go
- unassign_label_from_author.sql.go
- update_author_opt_out.sql.go
- update_image.sql.go
Click to show internal directories.
Click to hide internal directories.