Documentation ¶
Index ¶
- type Actor
- type ActorHasLabelParams
- type ActorLabel
- type AddEventPostParams
- type ApiKey
- type Block
- type Collection
- type ConcludeEventParams
- type ConfirmEventParams
- type CountFollowsByActorAndTargetParams
- type CreateActorLabelParams
- type CreateBlockParams
- type CreateEventParams
- type CreateFollowParams
- type CreateImageParams
- type CreateKeyParams
- type CreateLikeCountParams
- type CreateLikeParams
- type CreateMPLSParams
- type CreatePinParams
- type CreatePointAssignmentParams
- type CreatePostParams
- type CreateRecentPostLabelParams
- type CreateRecentPostParams
- type CreateRepoBackfillRecordParams
- type CreateRepostParams
- type CreateSubjectParams
- type CreateTQSPParams
- type DBTX
- type DailySummary
- type DecrementFollowerCountByNParams
- type DecrementFollowingCountByNParams
- type DecrementLikeCountByNParams
- type DecrementRepostCountByNParams
- type DeleteActorLabelParams
- type DeleteBlockParams
- type DeleteFollowParams
- type DeleteImageParams
- type DeleteImagesForPostParams
- type DeleteLikeCountParams
- type DeleteLikeParams
- type DeleteMPLSParams
- type DeletePinParams
- type DeletePointAssignmentParams
- type DeletePostParams
- type DeleteRecentPostLabelParams
- type DeleteRecentPostParams
- type DeleteRepostCountParams
- type DeleteRepostParams
- type DeleteSubjectParams
- type DeleteTQSPParams
- type EnqueueImageParams
- type Event
- type FindPotentialFriendsParams
- type FindPotentialFriendsRow
- type Follow
- type FollowerCount
- type FollowerStat
- type FollowingCount
- type GetActiveEventsForInitiatorParams
- type GetActiveEventsForTargetParams
- type GetActorTypeAheadParams
- type GetActorTypeAheadRow
- type GetActorsForValidationParams
- type GetBlockParams
- type GetBlocksByActorAndTargetParams
- type GetBlocksByActorParams
- type GetBlocksByTargetParams
- type GetCleanupJobsByRepoParams
- type GetCleanupStatsRow
- type GetEventsForInitiatorParams
- type GetEventsForTargetParams
- type GetEventsToConcludeParams
- type GetFollowPageParams
- type GetFollowParams
- type GetFollowsByActorAndTargetParams
- type GetFollowsByActorParams
- type GetFollowsByTargetParams
- type GetHotPageParams
- type GetHotPageRow
- type GetImageParams
- type GetImagesForPostParams
- type GetLikeCountParams
- type GetLikeParams
- type GetLikeRow
- type GetLikesByActorParams
- type GetLikesByActorRow
- type GetLikesBySubjectParams
- type GetLikesBySubjectRow
- type GetLikesGivenByActorFromToParams
- type GetLikesReceivedByActorFromActorParams
- type GetMPLSParams
- type GetMyPostsByFuzzyContentParams
- type GetPinParams
- type GetPinnedPostsByActorParams
- type GetPointAssignmentParams
- type GetPointAssignmentsForActorParams
- type GetPointAssignmentsForEventParams
- type GetPopularRecentPostsByLanguageParams
- type GetPopularRecentPostsByLanguageRow
- type GetPostParams
- type GetPostWithRepliesParams
- type GetPostWithRepliesRow
- type GetPostsByActorParams
- type GetPostsByActorsFollowingTargetParams
- type GetPostsFromNonMootsParams
- type GetPostsFromNonSpamUsersParams
- type GetRecentPostParams
- type GetRecentPostsByActorParams
- type GetRecentPostsByActorsFollowingTargetParams
- type GetRecentPostsFromNonMootsParams
- type GetRecentPostsFromNonSpamUsersParams
- type GetRecentPostsPageByInsertedAtParams
- type GetRepoBackfillRecordsParams
- type GetRepostCountParams
- type GetRepostParams
- type GetRepostRow
- type GetRepostsByActorParams
- type GetRepostsByActorRow
- type GetRepostsBySubjectParams
- type GetRepostsBySubjectRow
- type GetSubjectParams
- type GetTQSPParams
- type GetTopPostsForActorParams
- type GetTopPostsInWindowParams
- type GetTopPostsInWindowRow
- type GetTopPostsParams
- type GetTopUsersByPointsRow
- type GetUnconfirmedEventParams
- type Image
- type ImagesToProcess
- type IncrementFollowerCountByNParams
- type IncrementFollowingCountByNParams
- type IncrementLikeCountByNParams
- type IncrementLikeCountByNWithSubjectParams
- type IncrementRepostCountByNParams
- type InsertLikeParams
- type Like
- type LikeCount
- type ListMPLSParams
- type ListPinsByActorParams
- type ListRecentPostLabelsParams
- type ListRecentPostsByLabelHotParams
- type ListRecentPostsByLabelHotRow
- type ListRecentPostsParams
- type ListTQSPParams
- type MonthlySummary
- type Mpl
- type Pin
- type PointAssignment
- type Post
- type Queries
- func (q *Queries) ActorHasLabel(ctx context.Context, arg ActorHasLabelParams) (bool, error)
- func (q *Queries) AddEventPost(ctx context.Context, arg AddEventPostParams) error
- func (q *Queries) Close() error
- func (q *Queries) ConcludeEvent(ctx context.Context, arg ConcludeEventParams) error
- func (q *Queries) ConfirmEvent(ctx context.Context, arg ConfirmEventParams) error
- func (q *Queries) CountBlockersByTarget(ctx context.Context, targetDid string) (int64, error)
- func (q *Queries) CountBlocksByActor(ctx context.Context, actorDid string) (int64, error)
- func (q *Queries) CountFollowersByTarget(ctx context.Context, targetDid string) (int64, error)
- func (q *Queries) CountFollowsByActor(ctx context.Context, actorDid string) (int64, error)
- func (q *Queries) CountFollowsByActorAndTarget(ctx context.Context, arg CountFollowsByActorAndTargetParams) (int64, error)
- func (q *Queries) CreateActorLabel(ctx context.Context, arg CreateActorLabelParams) error
- func (q *Queries) CreateBlock(ctx context.Context, arg CreateBlockParams) error
- func (q *Queries) CreateCollection(ctx context.Context, name string) (Collection, error)
- func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (int64, error)
- func (q *Queries) CreateFollow(ctx context.Context, arg CreateFollowParams) error
- func (q *Queries) CreateImage(ctx context.Context, arg CreateImageParams) error
- func (q *Queries) CreateKey(ctx context.Context, arg CreateKeyParams) error
- func (q *Queries) CreateLike(ctx context.Context, arg CreateLikeParams) error
- func (q *Queries) CreateLikeCount(ctx context.Context, arg CreateLikeCountParams) error
- func (q *Queries) CreateMPLS(ctx context.Context, arg CreateMPLSParams) error
- func (q *Queries) CreatePin(ctx context.Context, arg CreatePinParams) error
- func (q *Queries) CreatePointAssignment(ctx context.Context, arg CreatePointAssignmentParams) error
- func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) error
- func (q *Queries) CreateRecentPost(ctx context.Context, arg CreateRecentPostParams) error
- func (q *Queries) CreateRecentPostLabel(ctx context.Context, arg CreateRecentPostLabelParams) error
- func (q *Queries) CreateRepoBackfillRecord(ctx context.Context, arg CreateRepoBackfillRecordParams) error
- func (q *Queries) CreateRepost(ctx context.Context, arg CreateRepostParams) error
- func (q *Queries) CreateSubject(ctx context.Context, arg CreateSubjectParams) (Subject, error)
- func (q *Queries) CreateTQSP(ctx context.Context, arg CreateTQSPParams) error
- func (q *Queries) DecrementFollowerCountByN(ctx context.Context, arg DecrementFollowerCountByNParams) error
- func (q *Queries) DecrementFollowingCountByN(ctx context.Context, arg DecrementFollowingCountByNParams) error
- func (q *Queries) DecrementLikeCountByN(ctx context.Context, arg DecrementLikeCountByNParams) error
- func (q *Queries) DecrementRepostCountByN(ctx context.Context, arg DecrementRepostCountByNParams) error
- func (q *Queries) DeleteActorLabel(ctx context.Context, arg DeleteActorLabelParams) error
- func (q *Queries) DeleteBlock(ctx context.Context, arg DeleteBlockParams) error
- func (q *Queries) DeleteCollection(ctx context.Context, name string) error
- func (q *Queries) DeleteEvent(ctx context.Context, id int64) error
- func (q *Queries) DeleteFollow(ctx context.Context, arg DeleteFollowParams) error
- func (q *Queries) DeleteFollowerCount(ctx context.Context, actorDid string) error
- func (q *Queries) DeleteFollowingCount(ctx context.Context, actorDid string) error
- func (q *Queries) DeleteFollowsByActor(ctx context.Context, actorDid string) error
- func (q *Queries) DeleteFollowsByTarget(ctx context.Context, targetDid string) error
- func (q *Queries) DeleteImage(ctx context.Context, arg DeleteImageParams) error
- func (q *Queries) DeleteImagesForPost(ctx context.Context, arg DeleteImagesForPostParams) error
- func (q *Queries) DeleteKey(ctx context.Context, apiKey string) error
- func (q *Queries) DeleteLike(ctx context.Context, arg DeleteLikeParams) error
- func (q *Queries) DeleteLikeCount(ctx context.Context, arg DeleteLikeCountParams) error
- func (q *Queries) DeleteMPLS(ctx context.Context, arg DeleteMPLSParams) error
- func (q *Queries) DeletePin(ctx context.Context, arg DeletePinParams) error
- func (q *Queries) DeletePointAssignment(ctx context.Context, arg DeletePointAssignmentParams) error
- func (q *Queries) DeletePost(ctx context.Context, arg DeletePostParams) error
- func (q *Queries) DeleteRecentPost(ctx context.Context, arg DeleteRecentPostParams) error
- func (q *Queries) DeleteRecentPostLabel(ctx context.Context, arg DeleteRecentPostLabelParams) error
- func (q *Queries) DeleteRepoCleanupJob(ctx context.Context, jobID string) error
- func (q *Queries) DeleteRepost(ctx context.Context, arg DeleteRepostParams) error
- func (q *Queries) DeleteRepostCount(ctx context.Context, arg DeleteRepostCountParams) error
- func (q *Queries) DeleteSubject(ctx context.Context, arg DeleteSubjectParams) error
- func (q *Queries) DeleteTQSP(ctx context.Context, arg DeleteTQSPParams) error
- func (q *Queries) DequeueImages(ctx context.Context, dollar_1 []int64) error
- func (q *Queries) EnqueueImage(ctx context.Context, arg EnqueueImageParams) error
- func (q *Queries) FindActorsByHandle(ctx context.Context, concat interface{}) ([]Actor, error)
- func (q *Queries) FindPotentialFriends(ctx context.Context, arg FindPotentialFriendsParams) ([]FindPotentialFriendsRow, error)
- func (q *Queries) GetActiveEventsForInitiator(ctx context.Context, arg GetActiveEventsForInitiatorParams) ([]Event, error)
- func (q *Queries) GetActiveEventsForTarget(ctx context.Context, arg GetActiveEventsForTargetParams) ([]Event, error)
- func (q *Queries) GetActorByDID(ctx context.Context, did string) (Actor, error)
- func (q *Queries) GetActorByHandle(ctx context.Context, handle string) (Actor, error)
- func (q *Queries) GetActorByID(ctx context.Context, id sql.NullInt64) (Actor, error)
- func (q *Queries) GetActorTypeAhead(ctx context.Context, arg GetActorTypeAheadParams) ([]GetActorTypeAheadRow, error)
- func (q *Queries) GetActorsByIDs(ctx context.Context, id sql.NullInt64) ([]Actor, error)
- func (q *Queries) GetActorsForValidation(ctx context.Context, arg GetActorsForValidationParams) ([]Actor, error)
- func (q *Queries) GetActorsWithoutPropic(ctx context.Context, limit int32) ([]Actor, error)
- func (q *Queries) GetBitmapByID(ctx context.Context, id string) (StatsBitmap, error)
- func (q *Queries) GetBlock(ctx context.Context, arg GetBlockParams) (Block, error)
- func (q *Queries) GetBlocksByActor(ctx context.Context, arg GetBlocksByActorParams) ([]Block, error)
- func (q *Queries) GetBlocksByActorAndTarget(ctx context.Context, arg GetBlocksByActorAndTargetParams) ([]Block, error)
- func (q *Queries) GetBlocksByTarget(ctx context.Context, arg GetBlocksByTargetParams) ([]Block, error)
- func (q *Queries) GetCleanupJobsByRepo(ctx context.Context, arg GetCleanupJobsByRepoParams) ([]RepoCleanupJob, error)
- func (q *Queries) GetCleanupStats(ctx context.Context) (GetCleanupStatsRow, error)
- func (q *Queries) GetCollection(ctx context.Context, name string) (Collection, error)
- func (q *Queries) GetDailySummaries(ctx context.Context) ([]DailySummary, error)
- func (q *Queries) GetEvent(ctx context.Context, id int64) (Event, error)
- func (q *Queries) GetEventsForInitiator(ctx context.Context, arg GetEventsForInitiatorParams) ([]Event, error)
- func (q *Queries) GetEventsForTarget(ctx context.Context, arg GetEventsForTargetParams) ([]Event, error)
- func (q *Queries) GetEventsToConclude(ctx context.Context, arg GetEventsToConcludeParams) ([]Event, error)
- func (q *Queries) GetFollow(ctx context.Context, arg GetFollowParams) (Follow, error)
- func (q *Queries) GetFollowPage(ctx context.Context, arg GetFollowPageParams) ([]Follow, error)
- func (q *Queries) GetFollowerCount(ctx context.Context, actorDid string) (FollowerCount, error)
- func (q *Queries) GetFollowerPercentiles(ctx context.Context) (FollowerStat, error)
- func (q *Queries) GetFollowingCount(ctx context.Context, actorDid string) (FollowingCount, error)
- func (q *Queries) GetFollowsByActor(ctx context.Context, arg GetFollowsByActorParams) ([]Follow, error)
- func (q *Queries) GetFollowsByActorAndTarget(ctx context.Context, arg GetFollowsByActorAndTargetParams) ([]Follow, error)
- func (q *Queries) GetFollowsByTarget(ctx context.Context, arg GetFollowsByTargetParams) ([]Follow, error)
- func (q *Queries) GetHotPage(ctx context.Context, arg GetHotPageParams) ([]GetHotPageRow, error)
- func (q *Queries) GetImage(ctx context.Context, arg GetImageParams) (Image, error)
- func (q *Queries) GetImagesForPost(ctx context.Context, arg GetImagesForPostParams) ([]Image, error)
- func (q *Queries) GetKey(ctx context.Context, apiKey string) (ApiKey, error)
- func (q *Queries) GetLike(ctx context.Context, arg GetLikeParams) (GetLikeRow, error)
- func (q *Queries) GetLikeCount(ctx context.Context, arg GetLikeCountParams) (LikeCount, error)
- func (q *Queries) GetLikesByActor(ctx context.Context, arg GetLikesByActorParams) ([]GetLikesByActorRow, error)
- func (q *Queries) GetLikesBySubject(ctx context.Context, arg GetLikesBySubjectParams) ([]GetLikesBySubjectRow, error)
- func (q *Queries) GetLikesGivenByActorFromTo(ctx context.Context, arg GetLikesGivenByActorFromToParams) (int64, error)
- func (q *Queries) GetLikesReceivedByActorFromActor(ctx context.Context, arg GetLikesReceivedByActorFromActorParams) (int64, error)
- func (q *Queries) GetMPLS(ctx context.Context, arg GetMPLSParams) (Mpl, error)
- func (q *Queries) GetMyPostsByFuzzyContent(ctx context.Context, arg GetMyPostsByFuzzyContentParams) ([]Post, error)
- func (q *Queries) GetPin(ctx context.Context, arg GetPinParams) (Pin, error)
- func (q *Queries) GetPinnedPostsByActor(ctx context.Context, arg GetPinnedPostsByActorParams) ([]Post, error)
- func (q *Queries) GetPointAssignment(ctx context.Context, arg GetPointAssignmentParams) (PointAssignment, error)
- func (q *Queries) GetPointAssignmentsForActor(ctx context.Context, arg GetPointAssignmentsForActorParams) ([]PointAssignment, error)
- func (q *Queries) GetPointAssignmentsForEvent(ctx context.Context, arg GetPointAssignmentsForEventParams) ([]PointAssignment, error)
- func (q *Queries) GetPopularRecentPostsByLanguage(ctx context.Context, arg GetPopularRecentPostsByLanguageParams) ([]GetPopularRecentPostsByLanguageRow, error)
- func (q *Queries) GetPost(ctx context.Context, arg GetPostParams) (Post, error)
- func (q *Queries) GetPostWithReplies(ctx context.Context, arg GetPostWithRepliesParams) ([]GetPostWithRepliesRow, error)
- func (q *Queries) GetPostsByActor(ctx context.Context, arg GetPostsByActorParams) ([]Post, error)
- func (q *Queries) GetPostsByActorsFollowingTarget(ctx context.Context, arg GetPostsByActorsFollowingTargetParams) ([]Post, error)
- func (q *Queries) GetPostsFromNonMoots(ctx context.Context, arg GetPostsFromNonMootsParams) ([]Post, error)
- func (q *Queries) GetPostsFromNonSpamUsers(ctx context.Context, arg GetPostsFromNonSpamUsersParams) ([]Post, error)
- func (q *Queries) GetRecentPost(ctx context.Context, arg GetRecentPostParams) (RecentPost, error)
- func (q *Queries) GetRecentPostsByActor(ctx context.Context, arg GetRecentPostsByActorParams) ([]RecentPost, error)
- func (q *Queries) GetRecentPostsByActorsFollowingTarget(ctx context.Context, arg GetRecentPostsByActorsFollowingTargetParams) ([]RecentPost, error)
- func (q *Queries) GetRecentPostsFromNonMoots(ctx context.Context, arg GetRecentPostsFromNonMootsParams) ([]RecentPost, error)
- func (q *Queries) GetRecentPostsFromNonSpamUsers(ctx context.Context, arg GetRecentPostsFromNonSpamUsersParams) ([]RecentPost, error)
- func (q *Queries) GetRecentPostsPageByInsertedAt(ctx context.Context, arg GetRecentPostsPageByInsertedAtParams) ([]RecentPost, error)
- func (q *Queries) GetRepoBackfillRecord(ctx context.Context, repo string) (RepoBackfillStatus, error)
- func (q *Queries) GetRepoBackfillRecords(ctx context.Context, arg GetRepoBackfillRecordsParams) ([]RepoBackfillStatus, error)
- func (q *Queries) GetRepoCleanupJob(ctx context.Context, jobID string) (RepoCleanupJob, error)
- func (q *Queries) GetRepost(ctx context.Context, arg GetRepostParams) (GetRepostRow, error)
- func (q *Queries) GetRepostCount(ctx context.Context, arg GetRepostCountParams) (RepostCount, error)
- func (q *Queries) GetRepostsByActor(ctx context.Context, arg GetRepostsByActorParams) ([]GetRepostsByActorRow, error)
- func (q *Queries) GetRepostsBySubject(ctx context.Context, arg GetRepostsBySubjectParams) ([]GetRepostsBySubjectRow, error)
- func (q *Queries) GetRunningCleanupJobs(ctx context.Context, limit int32) ([]RepoCleanupJob, error)
- func (q *Queries) GetRunningCleanupJobsByRepo(ctx context.Context, repo string) ([]RepoCleanupJob, error)
- func (q *Queries) GetSpamFollowers(ctx context.Context) ([]string, error)
- func (q *Queries) GetSubject(ctx context.Context, arg GetSubjectParams) (Subject, error)
- func (q *Queries) GetSubjectById(ctx context.Context, id int64) (Subject, error)
- func (q *Queries) GetTQSP(ctx context.Context, arg GetTQSPParams) (Tqsp, error)
- func (q *Queries) GetTopPosts(ctx context.Context, arg GetTopPostsParams) ([]Post, error)
- func (q *Queries) GetTopPostsForActor(ctx context.Context, arg GetTopPostsForActorParams) ([]Post, error)
- func (q *Queries) GetTopPostsInWindow(ctx context.Context, arg GetTopPostsInWindowParams) ([]GetTopPostsInWindowRow, error)
- func (q *Queries) GetTopUsersByPoints(ctx context.Context, limit int32) ([]GetTopUsersByPointsRow, error)
- func (q *Queries) GetTotalLikesGivenByActor(ctx context.Context, actorDid string) (int64, error)
- func (q *Queries) GetTotalLikesReceivedByActor(ctx context.Context, actorDid string) (int64, error)
- func (q *Queries) GetTotalPointsForActor(ctx context.Context, actorDid string) (int64, error)
- func (q *Queries) GetTotalPointsForEvent(ctx context.Context, eventID int64) (int64, error)
- func (q *Queries) GetUnconfirmedEvent(ctx context.Context, arg GetUnconfirmedEventParams) (Event, error)
- func (q *Queries) IncrementFollowerCountByN(ctx context.Context, arg IncrementFollowerCountByNParams) error
- func (q *Queries) IncrementFollowingCountByN(ctx context.Context, arg IncrementFollowingCountByNParams) error
- func (q *Queries) IncrementLikeCountByN(ctx context.Context, arg IncrementLikeCountByNParams) error
- func (q *Queries) IncrementLikeCountByNWithSubject(ctx context.Context, arg IncrementLikeCountByNWithSubjectParams) error
- func (q *Queries) IncrementRepostCountByN(ctx context.Context, arg IncrementRepostCountByNParams) error
- func (q *Queries) InsertLike(ctx context.Context, arg InsertLikeParams) error
- func (q *Queries) ListActorLabels(ctx context.Context, actorDid string) ([]string, error)
- func (q *Queries) ListActorsByLabel(ctx context.Context, label string) ([]string, error)
- func (q *Queries) ListImagesToProcess(ctx context.Context, limit int32) ([]ImagesToProcess, error)
- func (q *Queries) ListMPLS(ctx context.Context, arg ListMPLSParams) ([]Mpl, error)
- func (q *Queries) ListPinsByActor(ctx context.Context, arg ListPinsByActorParams) ([]Pin, error)
- func (q *Queries) ListRecentPostLabels(ctx context.Context, arg ListRecentPostLabelsParams) ([]string, error)
- func (q *Queries) ListRecentPosts(ctx context.Context, arg ListRecentPostsParams) ([]RecentPost, error)
- func (q *Queries) ListRecentPostsByLabelHot(ctx context.Context, arg ListRecentPostsByLabelHotParams) ([]ListRecentPostsByLabelHotRow, error)
- func (q *Queries) ListTQSP(ctx context.Context, arg ListTQSPParams) ([]Tqsp, error)
- func (q *Queries) RefreshStatsForDay(ctx context.Context, arg RefreshStatsForDayParams) error
- func (q *Queries) TrimMPLS(ctx context.Context, rkey string) error
- func (q *Queries) TrimOldRecentPosts(ctx context.Context, hours int32) (int64, error)
- func (q *Queries) TrimRecentPostLabels(ctx context.Context, rkey string) error
- func (q *Queries) TrimTQSP(ctx context.Context, rkey string) error
- func (q *Queries) UpatePointAssignment(ctx context.Context, arg UpatePointAssignmentParams) error
- func (q *Queries) UpdateActorPropic(ctx context.Context, arg UpdateActorPropicParams) error
- func (q *Queries) UpdateActorsValidation(ctx context.Context, arg UpdateActorsValidationParams) error
- func (q *Queries) UpdateRepoBackfillRecord(ctx context.Context, arg UpdateRepoBackfillRecordParams) error
- func (q *Queries) UpsertActor(ctx context.Context, arg UpsertActorParams) error
- func (q *Queries) UpsertActorFromFirehose(ctx context.Context, arg UpsertActorFromFirehoseParams) error
- func (q *Queries) UpsertBitmap(ctx context.Context, arg UpsertBitmapParams) error
- func (q *Queries) UpsertRepoCleanupJob(ctx context.Context, arg UpsertRepoCleanupJobParams) (RepoCleanupJob, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RecentPost
- type RecentPostLabel
- type RecentPostsWithScore
- type RefreshStatsForDayParams
- type RepoBackfillStatus
- type RepoCleanupJob
- type Repost
- type RepostCount
- type StatsBitmap
- type Subject
- type Tqsp
- type UpatePointAssignmentParams
- type UpdateActorPropicParams
- type UpdateActorsValidationParams
- type UpdateRepoBackfillRecordParams
- type UpsertActorFromFirehoseParams
- type UpsertActorParams
- type UpsertBitmapParams
- type UpsertRepoCleanupJobParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor struct { Did string `json:"did"` Handle string `json:"handle"` DisplayName sql.NullString `json:"display_name"` Bio sql.NullString `json:"bio"` HandleValid bool `json:"handle_valid"` LastValidated sql.NullTime `json:"last_validated"` ProPicCid sql.NullString `json:"pro_pic_cid"` BannerCid sql.NullString `json:"banner_cid"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` InsertedAt time.Time `json:"inserted_at"` ID sql.NullInt64 `json:"id"` }
type ActorHasLabelParams ¶
type ActorLabel ¶
type AddEventPostParams ¶
type AddEventPostParams struct { ID int64 `json:"id"` PostUri sql.NullString `json:"post_uri"` }
type Collection ¶
type ConcludeEventParams ¶
type ConcludeEventParams struct { ID int64 `json:"id"` Results pqtype.NullRawMessage `json:"results"` ConcludedAt sql.NullTime `json:"concluded_at"` }
type ConfirmEventParams ¶
type CreateActorLabelParams ¶
type CreateBlockParams ¶
type CreateEventParams ¶
type CreateFollowParams ¶
type CreateImageParams ¶
type CreateKeyParams ¶
type CreateKeyParams struct { ApiKey string `json:"api_key"` AuthEntity json.RawMessage `json:"auth_entity"` AssignedUser string `json:"assigned_user"` }
type CreateLikeCountParams ¶
type CreateLikeParams ¶
type CreateMPLSParams ¶
type CreatePinParams ¶
type CreatePostParams ¶
type CreatePostParams struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` HasEmbeddedMedia bool `json:"has_embedded_media"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` }
type CreateRecentPostParams ¶
type CreateRecentPostParams struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` HasEmbeddedMedia bool `json:"has_embedded_media"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` CreatedAt sql.NullTime `json:"created_at"` }
type CreateRepostParams ¶
type CreateSubjectParams ¶
type CreateTQSPParams ¶
type DailySummary ¶
type DailySummary struct { Date time.Time `json:"date"` LikesPerDay int64 `json:"Likes per Day"` DailyActiveLikers int64 `json:"Daily Active Likers"` DailyActivePosters int64 `json:"Daily Active Posters"` PostsPerDay int64 `json:"Posts per Day"` PostsWithImagesPerDay int64 `json:"Posts with Images per Day"` ImagesPerDay int64 `json:"Images per Day"` ImagesWithAltTextPerDay int64 `json:"Images with Alt Text per Day"` FirstTimePosters int64 `json:"First Time Posters"` FollowsPerDay int64 `json:"Follows per Day"` DailyActiveFollowers int64 `json:"Daily Active Followers"` BlocksPerDay int64 `json:"Blocks per Day"` DailyActiveBlockers int64 `json:"Daily Active Blockers"` }
type DeleteActorLabelParams ¶
type DeleteBlockParams ¶
type DeleteFollowParams ¶
type DeleteImageParams ¶
type DeleteLikeCountParams ¶
type DeleteLikeParams ¶
type DeleteMPLSParams ¶
type DeletePinParams ¶
type DeletePostParams ¶
type DeleteRecentPostParams ¶
type DeleteRepostCountParams ¶
type DeleteRepostParams ¶
type DeleteSubjectParams ¶
type DeleteTQSPParams ¶
type EnqueueImageParams ¶
type Event ¶
type Event struct { ID int64 `json:"id"` InitiatorDid string `json:"initiator_did"` TargetDid string `json:"target_did"` EventType string `json:"event_type"` PostUri sql.NullString `json:"post_uri"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ExpiredAt sql.NullTime `json:"expired_at"` ConcludedAt sql.NullTime `json:"concluded_at"` WindowStart sql.NullTime `json:"window_start"` WindowEnd sql.NullTime `json:"window_end"` Results pqtype.NullRawMessage `json:"results"` }
type FindPotentialFriendsRow ¶
type FollowerCount ¶
type FollowerStat ¶
type FollowingCount ¶
type GetActorTypeAheadParams ¶
type GetActorTypeAheadRow ¶
type GetBlockParams ¶
type GetBlocksByActorParams ¶
type GetBlocksByTargetParams ¶
type GetCleanupStatsRow ¶
type GetFollowPageParams ¶
type GetFollowParams ¶
type GetFollowsByActorParams ¶
type GetHotPageParams ¶
type GetHotPageParams struct { Limit int32 `json:"limit"` Score sql.NullFloat64 `json:"score"` }
type GetHotPageRow ¶
type GetHotPageRow struct { SubjectID int64 `json:"subject_id"` ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` SubjectCreatedAt sql.NullTime `json:"subject_created_at"` InsertedAt time.Time `json:"inserted_at"` Langs []string `json:"langs"` HasEmbeddedMedia bool `json:"has_embedded_media"` Score float64 `json:"score"` ActorDid_2 sql.NullString `json:"actor_did_2"` NumFollowing sql.NullInt64 `json:"num_following"` UpdatedAt sql.NullTime `json:"updated_at"` }
type GetImageParams ¶
type GetImagesForPostParams ¶
type GetLikeCountParams ¶
type GetLikeParams ¶
type GetLikeRow ¶
type GetLikeRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetLikesByActorParams ¶
type GetLikesByActorRow ¶
type GetLikesByActorRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetLikesBySubjectParams ¶
type GetLikesBySubjectRow ¶
type GetLikesBySubjectRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetMPLSParams ¶
type GetPinParams ¶
type GetPopularRecentPostsByLanguageRow ¶
type GetPopularRecentPostsByLanguageRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` HasEmbeddedMedia bool `json:"has_embedded_media"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` ActorDid_2 string `json:"actor_did_2"` NumFollowers int64 `json:"num_followers"` UpdatedAt time.Time `json:"updated_at"` }
type GetPostParams ¶
type GetPostWithRepliesRow ¶
type GetPostWithRepliesRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` HasEmbeddedMedia bool `json:"has_embedded_media"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` Handle sql.NullString `json:"handle"` ProPicCid sql.NullString `json:"pro_pic_cid"` ImageCids []string `json:"image_cids"` ImageAlts []string `json:"image_alts"` LikeCount sql.NullInt64 `json:"like_count"` }
type GetPostsByActorParams ¶
type GetRecentPostParams ¶
type GetRepostCountParams ¶
type GetRepostParams ¶
type GetRepostRow ¶
type GetRepostRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetRepostsByActorParams ¶
type GetRepostsByActorRow ¶
type GetRepostsByActorRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetRepostsBySubjectRow ¶
type GetRepostsBySubjectRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Subj int64 `json:"subj"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` SubjectActorDid string `json:"subject_actor_did"` SubjectNamespace string `json:"subject_namespace"` SubjectRkey string `json:"subject_rkey"` }
type GetSubjectParams ¶
type GetTQSPParams ¶
type GetTopPostsInWindowRow ¶
type GetTopPostsInWindowRow struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` HasEmbeddedMedia bool `json:"has_embedded_media"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` NumLikes int64 `json:"num_likes"` }
type GetTopPostsParams ¶
type GetTopUsersByPointsRow ¶
type GetUnconfirmedEventParams ¶
type GetUnconfirmedEventParams struct { PostUri sql.NullString `json:"post_uri"` TargetDid string `json:"target_did"` }
type ImagesToProcess ¶
type InsertLikeParams ¶
type ListMPLSParams ¶
type ListPinsByActorParams ¶
type ListRecentPostsByLabelHotParams ¶
type ListRecentPostsByLabelHotParams struct { Label string `json:"label"` Limit int32 `json:"limit"` Score sql.NullFloat64 `json:"score"` }
type ListRecentPostsParams ¶
type ListTQSPParams ¶
type MonthlySummary ¶
type MonthlySummary struct { Date time.Time `json:"date"` LikesPerMonth int64 `json:"Likes per Month"` MonthlyActiveLikers int64 `json:"Monthly Active Likers"` MonthlyActivePosters int64 `json:"Monthly Active Posters"` PostsPerMonth int64 `json:"Posts per Month"` PostsWithImagesPerMonth int64 `json:"Posts with Images per Month"` ImagesPerMonth int64 `json:"Images per Month"` ImagesWithAltTextPerMonth int64 `json:"Images with Alt Text per Month"` FirstTimePosters int64 `json:"First Time Posters"` FollowsPerMonth int64 `json:"Follows per Month"` MonthlyActiveFollowers int64 `json:"Monthly Active Followers"` BlocksPerMonth int64 `json:"Blocks per Month"` MonthlyActiveBlockers int64 `json:"Monthly Active Blockers"` }
type PointAssignment ¶
type Post ¶
type Post struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` HasEmbeddedMedia bool `json:"has_embedded_media"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ActorHasLabel ¶
func (*Queries) AddEventPost ¶
func (q *Queries) AddEventPost(ctx context.Context, arg AddEventPostParams) error
func (*Queries) ConcludeEvent ¶
func (q *Queries) ConcludeEvent(ctx context.Context, arg ConcludeEventParams) error
func (*Queries) ConfirmEvent ¶
func (q *Queries) ConfirmEvent(ctx context.Context, arg ConfirmEventParams) error
func (*Queries) CountBlockersByTarget ¶
func (*Queries) CountBlocksByActor ¶
func (*Queries) CountFollowersByTarget ¶
func (*Queries) CountFollowsByActor ¶
func (*Queries) CountFollowsByActorAndTarget ¶
func (*Queries) CreateActorLabel ¶
func (q *Queries) CreateActorLabel(ctx context.Context, arg CreateActorLabelParams) error
func (*Queries) CreateBlock ¶
func (q *Queries) CreateBlock(ctx context.Context, arg CreateBlockParams) error
func (*Queries) CreateCollection ¶
func (*Queries) CreateEvent ¶
func (*Queries) CreateFollow ¶
func (q *Queries) CreateFollow(ctx context.Context, arg CreateFollowParams) error
func (*Queries) CreateImage ¶
func (q *Queries) CreateImage(ctx context.Context, arg CreateImageParams) error
func (*Queries) CreateKey ¶
func (q *Queries) CreateKey(ctx context.Context, arg CreateKeyParams) error
func (*Queries) CreateLike ¶
func (q *Queries) CreateLike(ctx context.Context, arg CreateLikeParams) error
func (*Queries) CreateLikeCount ¶
func (q *Queries) CreateLikeCount(ctx context.Context, arg CreateLikeCountParams) error
func (*Queries) CreateMPLS ¶
func (q *Queries) CreateMPLS(ctx context.Context, arg CreateMPLSParams) error
func (*Queries) CreatePin ¶
func (q *Queries) CreatePin(ctx context.Context, arg CreatePinParams) error
func (*Queries) CreatePointAssignment ¶
func (q *Queries) CreatePointAssignment(ctx context.Context, arg CreatePointAssignmentParams) error
func (*Queries) CreatePost ¶
func (q *Queries) CreatePost(ctx context.Context, arg CreatePostParams) error
func (*Queries) CreateRecentPost ¶
func (q *Queries) CreateRecentPost(ctx context.Context, arg CreateRecentPostParams) error
func (*Queries) CreateRecentPostLabel ¶
func (q *Queries) CreateRecentPostLabel(ctx context.Context, arg CreateRecentPostLabelParams) error
func (*Queries) CreateRepoBackfillRecord ¶
func (q *Queries) CreateRepoBackfillRecord(ctx context.Context, arg CreateRepoBackfillRecordParams) error
Backfill Status CREATE TABLE repo_backfill_status (
repo TEXT NOT NULL, last_backfill TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, seq_started BIGINT DEFAULT 0 NOT NULL, state TEXT DEFAULT 'in_progress'::text NOT NULL, PRIMARY KEY (repo)
);
func (*Queries) CreateRepost ¶
func (q *Queries) CreateRepost(ctx context.Context, arg CreateRepostParams) error
func (*Queries) CreateSubject ¶
func (*Queries) CreateTQSP ¶
func (q *Queries) CreateTQSP(ctx context.Context, arg CreateTQSPParams) error
func (*Queries) DecrementFollowerCountByN ¶
func (q *Queries) DecrementFollowerCountByN(ctx context.Context, arg DecrementFollowerCountByNParams) error
func (*Queries) DecrementFollowingCountByN ¶
func (q *Queries) DecrementFollowingCountByN(ctx context.Context, arg DecrementFollowingCountByNParams) error
func (*Queries) DecrementLikeCountByN ¶
func (q *Queries) DecrementLikeCountByN(ctx context.Context, arg DecrementLikeCountByNParams) error
func (*Queries) DecrementRepostCountByN ¶
func (q *Queries) DecrementRepostCountByN(ctx context.Context, arg DecrementRepostCountByNParams) error
func (*Queries) DeleteActorLabel ¶
func (q *Queries) DeleteActorLabel(ctx context.Context, arg DeleteActorLabelParams) error
func (*Queries) DeleteBlock ¶
func (q *Queries) DeleteBlock(ctx context.Context, arg DeleteBlockParams) error
func (*Queries) DeleteCollection ¶
func (*Queries) DeleteFollow ¶
func (q *Queries) DeleteFollow(ctx context.Context, arg DeleteFollowParams) error
func (*Queries) DeleteFollowerCount ¶
func (*Queries) DeleteFollowingCount ¶
func (*Queries) DeleteFollowsByActor ¶
func (*Queries) DeleteFollowsByTarget ¶
func (*Queries) DeleteImage ¶
func (q *Queries) DeleteImage(ctx context.Context, arg DeleteImageParams) error
func (*Queries) DeleteImagesForPost ¶
func (q *Queries) DeleteImagesForPost(ctx context.Context, arg DeleteImagesForPostParams) error
func (*Queries) DeleteLike ¶
func (q *Queries) DeleteLike(ctx context.Context, arg DeleteLikeParams) error
func (*Queries) DeleteLikeCount ¶
func (q *Queries) DeleteLikeCount(ctx context.Context, arg DeleteLikeCountParams) error
func (*Queries) DeleteMPLS ¶
func (q *Queries) DeleteMPLS(ctx context.Context, arg DeleteMPLSParams) error
func (*Queries) DeletePin ¶
func (q *Queries) DeletePin(ctx context.Context, arg DeletePinParams) error
func (*Queries) DeletePointAssignment ¶
func (q *Queries) DeletePointAssignment(ctx context.Context, arg DeletePointAssignmentParams) error
func (*Queries) DeletePost ¶
func (q *Queries) DeletePost(ctx context.Context, arg DeletePostParams) error
func (*Queries) DeleteRecentPost ¶
func (q *Queries) DeleteRecentPost(ctx context.Context, arg DeleteRecentPostParams) error
func (*Queries) DeleteRecentPostLabel ¶
func (q *Queries) DeleteRecentPostLabel(ctx context.Context, arg DeleteRecentPostLabelParams) error
func (*Queries) DeleteRepoCleanupJob ¶
func (*Queries) DeleteRepost ¶
func (q *Queries) DeleteRepost(ctx context.Context, arg DeleteRepostParams) error
func (*Queries) DeleteRepostCount ¶
func (q *Queries) DeleteRepostCount(ctx context.Context, arg DeleteRepostCountParams) error
func (*Queries) DeleteSubject ¶
func (q *Queries) DeleteSubject(ctx context.Context, arg DeleteSubjectParams) error
func (*Queries) DeleteTQSP ¶
func (q *Queries) DeleteTQSP(ctx context.Context, arg DeleteTQSPParams) error
func (*Queries) DequeueImages ¶
func (*Queries) EnqueueImage ¶
func (q *Queries) EnqueueImage(ctx context.Context, arg EnqueueImageParams) error
func (*Queries) FindActorsByHandle ¶
func (*Queries) FindPotentialFriends ¶
func (q *Queries) FindPotentialFriends(ctx context.Context, arg FindPotentialFriendsParams) ([]FindPotentialFriendsRow, error)
func (*Queries) GetActiveEventsForInitiator ¶
func (*Queries) GetActiveEventsForTarget ¶
func (*Queries) GetActorByDID ¶
func (*Queries) GetActorByHandle ¶
func (*Queries) GetActorByID ¶
func (*Queries) GetActorTypeAhead ¶
func (q *Queries) GetActorTypeAhead(ctx context.Context, arg GetActorTypeAheadParams) ([]GetActorTypeAheadRow, error)
func (*Queries) GetActorsByIDs ¶
func (*Queries) GetActorsForValidation ¶
func (*Queries) GetActorsWithoutPropic ¶
func (*Queries) GetBitmapByID ¶
func (*Queries) GetBlocksByActor ¶
func (*Queries) GetBlocksByActorAndTarget ¶
func (*Queries) GetBlocksByTarget ¶
func (*Queries) GetCleanupJobsByRepo ¶
func (q *Queries) GetCleanupJobsByRepo(ctx context.Context, arg GetCleanupJobsByRepoParams) ([]RepoCleanupJob, error)
func (*Queries) GetCleanupStats ¶
func (q *Queries) GetCleanupStats(ctx context.Context) (GetCleanupStatsRow, error)
func (*Queries) GetCollection ¶
func (*Queries) GetDailySummaries ¶
func (q *Queries) GetDailySummaries(ctx context.Context) ([]DailySummary, error)
func (*Queries) GetEventsForInitiator ¶
func (*Queries) GetEventsForTarget ¶
func (*Queries) GetEventsToConclude ¶
func (*Queries) GetFollowPage ¶
func (*Queries) GetFollowerCount ¶
func (*Queries) GetFollowerPercentiles ¶
func (q *Queries) GetFollowerPercentiles(ctx context.Context) (FollowerStat, error)
func (*Queries) GetFollowingCount ¶
func (*Queries) GetFollowsByActor ¶
func (*Queries) GetFollowsByActorAndTarget ¶
func (*Queries) GetFollowsByTarget ¶
func (*Queries) GetHotPage ¶
func (q *Queries) GetHotPage(ctx context.Context, arg GetHotPageParams) ([]GetHotPageRow, error)
func (*Queries) GetImagesForPost ¶
func (*Queries) GetLike ¶
func (q *Queries) GetLike(ctx context.Context, arg GetLikeParams) (GetLikeRow, error)
func (*Queries) GetLikeCount ¶
func (*Queries) GetLikesByActor ¶
func (q *Queries) GetLikesByActor(ctx context.Context, arg GetLikesByActorParams) ([]GetLikesByActorRow, error)
func (*Queries) GetLikesBySubject ¶
func (q *Queries) GetLikesBySubject(ctx context.Context, arg GetLikesBySubjectParams) ([]GetLikesBySubjectRow, error)
func (*Queries) GetLikesGivenByActorFromTo ¶
func (*Queries) GetLikesReceivedByActorFromActor ¶
func (*Queries) GetMyPostsByFuzzyContent ¶
func (*Queries) GetPinnedPostsByActor ¶
func (*Queries) GetPointAssignment ¶
func (q *Queries) GetPointAssignment(ctx context.Context, arg GetPointAssignmentParams) (PointAssignment, error)
func (*Queries) GetPointAssignmentsForActor ¶
func (q *Queries) GetPointAssignmentsForActor(ctx context.Context, arg GetPointAssignmentsForActorParams) ([]PointAssignment, error)
func (*Queries) GetPointAssignmentsForEvent ¶
func (q *Queries) GetPointAssignmentsForEvent(ctx context.Context, arg GetPointAssignmentsForEventParams) ([]PointAssignment, error)
func (*Queries) GetPopularRecentPostsByLanguage ¶
func (q *Queries) GetPopularRecentPostsByLanguage(ctx context.Context, arg GetPopularRecentPostsByLanguageParams) ([]GetPopularRecentPostsByLanguageRow, error)
func (*Queries) GetPostWithReplies ¶
func (q *Queries) GetPostWithReplies(ctx context.Context, arg GetPostWithRepliesParams) ([]GetPostWithRepliesRow, error)
func (*Queries) GetPostsByActor ¶
func (*Queries) GetPostsByActorsFollowingTarget ¶
func (*Queries) GetPostsFromNonMoots ¶
func (*Queries) GetPostsFromNonSpamUsers ¶
func (*Queries) GetRecentPost ¶
func (q *Queries) GetRecentPost(ctx context.Context, arg GetRecentPostParams) (RecentPost, error)
func (*Queries) GetRecentPostsByActor ¶
func (q *Queries) GetRecentPostsByActor(ctx context.Context, arg GetRecentPostsByActorParams) ([]RecentPost, error)
func (*Queries) GetRecentPostsByActorsFollowingTarget ¶
func (q *Queries) GetRecentPostsByActorsFollowingTarget(ctx context.Context, arg GetRecentPostsByActorsFollowingTargetParams) ([]RecentPost, error)
func (*Queries) GetRecentPostsFromNonMoots ¶
func (q *Queries) GetRecentPostsFromNonMoots(ctx context.Context, arg GetRecentPostsFromNonMootsParams) ([]RecentPost, error)
func (*Queries) GetRecentPostsFromNonSpamUsers ¶
func (q *Queries) GetRecentPostsFromNonSpamUsers(ctx context.Context, arg GetRecentPostsFromNonSpamUsersParams) ([]RecentPost, error)
func (*Queries) GetRecentPostsPageByInsertedAt ¶
func (q *Queries) GetRecentPostsPageByInsertedAt(ctx context.Context, arg GetRecentPostsPageByInsertedAtParams) ([]RecentPost, error)
func (*Queries) GetRepoBackfillRecord ¶
func (*Queries) GetRepoBackfillRecords ¶
func (q *Queries) GetRepoBackfillRecords(ctx context.Context, arg GetRepoBackfillRecordsParams) ([]RepoBackfillStatus, error)
func (*Queries) GetRepoCleanupJob ¶
func (*Queries) GetRepost ¶
func (q *Queries) GetRepost(ctx context.Context, arg GetRepostParams) (GetRepostRow, error)
func (*Queries) GetRepostCount ¶
func (q *Queries) GetRepostCount(ctx context.Context, arg GetRepostCountParams) (RepostCount, error)
func (*Queries) GetRepostsByActor ¶
func (q *Queries) GetRepostsByActor(ctx context.Context, arg GetRepostsByActorParams) ([]GetRepostsByActorRow, error)
func (*Queries) GetRepostsBySubject ¶
func (q *Queries) GetRepostsBySubject(ctx context.Context, arg GetRepostsBySubjectParams) ([]GetRepostsBySubjectRow, error)
func (*Queries) GetRunningCleanupJobs ¶
func (*Queries) GetRunningCleanupJobsByRepo ¶
func (*Queries) GetSpamFollowers ¶
func (*Queries) GetSubject ¶
func (*Queries) GetSubjectById ¶
func (*Queries) GetTopPosts ¶
func (*Queries) GetTopPostsForActor ¶
func (*Queries) GetTopPostsInWindow ¶
func (q *Queries) GetTopPostsInWindow(ctx context.Context, arg GetTopPostsInWindowParams) ([]GetTopPostsInWindowRow, error)
func (*Queries) GetTopUsersByPoints ¶
func (*Queries) GetTotalLikesGivenByActor ¶
func (*Queries) GetTotalLikesReceivedByActor ¶
func (*Queries) GetTotalPointsForActor ¶
func (*Queries) GetTotalPointsForEvent ¶
func (*Queries) GetUnconfirmedEvent ¶
func (*Queries) IncrementFollowerCountByN ¶
func (q *Queries) IncrementFollowerCountByN(ctx context.Context, arg IncrementFollowerCountByNParams) error
Follow Counts
func (*Queries) IncrementFollowingCountByN ¶
func (q *Queries) IncrementFollowingCountByN(ctx context.Context, arg IncrementFollowingCountByNParams) error
Following Counts
func (*Queries) IncrementLikeCountByN ¶
func (q *Queries) IncrementLikeCountByN(ctx context.Context, arg IncrementLikeCountByNParams) error
func (*Queries) IncrementLikeCountByNWithSubject ¶
func (q *Queries) IncrementLikeCountByNWithSubject(ctx context.Context, arg IncrementLikeCountByNWithSubjectParams) error
func (*Queries) IncrementRepostCountByN ¶
func (q *Queries) IncrementRepostCountByN(ctx context.Context, arg IncrementRepostCountByNParams) error
func (*Queries) InsertLike ¶
func (q *Queries) InsertLike(ctx context.Context, arg InsertLikeParams) error
func (*Queries) ListActorLabels ¶
func (*Queries) ListActorsByLabel ¶
func (*Queries) ListImagesToProcess ¶
func (*Queries) ListPinsByActor ¶
func (*Queries) ListRecentPostLabels ¶
func (*Queries) ListRecentPosts ¶
func (q *Queries) ListRecentPosts(ctx context.Context, arg ListRecentPostsParams) ([]RecentPost, error)
func (*Queries) ListRecentPostsByLabelHot ¶
func (q *Queries) ListRecentPostsByLabelHot(ctx context.Context, arg ListRecentPostsByLabelHotParams) ([]ListRecentPostsByLabelHotRow, error)
func (*Queries) RefreshStatsForDay ¶
func (q *Queries) RefreshStatsForDay(ctx context.Context, arg RefreshStatsForDayParams) error
func (*Queries) TrimOldRecentPosts ¶
func (*Queries) TrimRecentPostLabels ¶
func (*Queries) UpatePointAssignment ¶
func (q *Queries) UpatePointAssignment(ctx context.Context, arg UpatePointAssignmentParams) error
func (*Queries) UpdateActorPropic ¶
func (q *Queries) UpdateActorPropic(ctx context.Context, arg UpdateActorPropicParams) error
func (*Queries) UpdateActorsValidation ¶
func (q *Queries) UpdateActorsValidation(ctx context.Context, arg UpdateActorsValidationParams) error
func (*Queries) UpdateRepoBackfillRecord ¶
func (q *Queries) UpdateRepoBackfillRecord(ctx context.Context, arg UpdateRepoBackfillRecordParams) error
func (*Queries) UpsertActor ¶
func (q *Queries) UpsertActor(ctx context.Context, arg UpsertActorParams) error
func (*Queries) UpsertActorFromFirehose ¶
func (q *Queries) UpsertActorFromFirehose(ctx context.Context, arg UpsertActorFromFirehoseParams) error
func (*Queries) UpsertBitmap ¶
func (q *Queries) UpsertBitmap(ctx context.Context, arg UpsertBitmapParams) error
CREATE TABLE stats_bitmaps (
id STRING PRIMARY KEY, bitmap BYTEA, updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL, created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL
);
func (*Queries) UpsertRepoCleanupJob ¶
func (q *Queries) UpsertRepoCleanupJob(ctx context.Context, arg UpsertRepoCleanupJobParams) (RepoCleanupJob, error)
-- Repo Cleanup Jobs CREATE TABLE repo_cleanup_jobs (
job_id TEXT PRIMARY KEY, repo TEXT NOT NULL, refresh_token TEXT NOT NULL, cleanup_types TEXT [] NOT NULL, delete_older_than TIMESTAMP WITH TIME ZONE NOT NULL, num_deleted INTEGER NOT NULL, num_deleted_today INTEGER NOT NULL, est_num_remaining INTEGER NOT NULL, job_state TEXT NOT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), last_deleted_at TIMESTAMP WITH TIME ZONE
);
type RecentPost ¶
type RecentPost struct { ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` Content sql.NullString `json:"content"` ParentPostActorDid sql.NullString `json:"parent_post_actor_did"` QuotePostActorDid sql.NullString `json:"quote_post_actor_did"` QuotePostRkey sql.NullString `json:"quote_post_rkey"` ParentPostRkey sql.NullString `json:"parent_post_rkey"` RootPostActorDid sql.NullString `json:"root_post_actor_did"` RootPostRkey sql.NullString `json:"root_post_rkey"` Facets pqtype.NullRawMessage `json:"facets"` Embed pqtype.NullRawMessage `json:"embed"` Langs []string `json:"langs"` Tags []string `json:"tags"` SubjectID sql.NullInt64 `json:"subject_id"` HasEmbeddedMedia bool `json:"has_embedded_media"` CreatedAt sql.NullTime `json:"created_at"` InsertedAt time.Time `json:"inserted_at"` }
type RecentPostLabel ¶
type RecentPostsWithScore ¶
type RecentPostsWithScore struct { SubjectID int64 `json:"subject_id"` ActorDid string `json:"actor_did"` Rkey string `json:"rkey"` SubjectCreatedAt sql.NullTime `json:"subject_created_at"` InsertedAt time.Time `json:"inserted_at"` Langs []string `json:"langs"` HasEmbeddedMedia bool `json:"has_embedded_media"` Score float64 `json:"score"` }
type RepoBackfillStatus ¶
type RepoCleanupJob ¶
type RepoCleanupJob struct { JobID string `json:"job_id"` Repo string `json:"repo"` RefreshToken string `json:"refresh_token"` CleanupTypes []string `json:"cleanup_types"` DeleteOlderThan time.Time `json:"delete_older_than"` NumDeleted int32 `json:"num_deleted"` NumDeletedToday int32 `json:"num_deleted_today"` EstNumRemaining int32 `json:"est_num_remaining"` JobState string `json:"job_state"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` LastDeletedAt sql.NullTime `json:"last_deleted_at"` }
type RepostCount ¶
type StatsBitmap ¶
type UpdateActorPropicParams ¶
type UpdateActorPropicParams struct { Did string `json:"did"` ProPicCid sql.NullString `json:"pro_pic_cid"` UpdatedAt sql.NullTime `json:"updated_at"` }
type UpsertActorFromFirehoseParams ¶
type UpsertActorFromFirehoseParams struct { Did string `json:"did"` Handle string `json:"handle"` DisplayName sql.NullString `json:"display_name"` Bio sql.NullString `json:"bio"` ProPicCid sql.NullString `json:"pro_pic_cid"` BannerCid sql.NullString `json:"banner_cid"` CreatedAt sql.NullTime `json:"created_at"` UpdatedAt sql.NullTime `json:"updated_at"` }
type UpsertActorParams ¶
type UpsertBitmapParams ¶
type UpsertRepoCleanupJobParams ¶
type UpsertRepoCleanupJobParams struct { JobID string `json:"job_id"` Repo string `json:"repo"` RefreshToken string `json:"refresh_token"` CleanupTypes []string `json:"cleanup_types"` DeleteOlderThan time.Time `json:"delete_older_than"` NumDeleted int32 `json:"num_deleted"` NumDeletedToday int32 `json:"num_deleted_today"` EstNumRemaining int32 `json:"est_num_remaining"` JobState string `json:"job_state"` UpdatedAt time.Time `json:"updated_at"` LastDeletedAt sql.NullTime `json:"last_deleted_at"` }
Source Files ¶
- actor_labels.sql.go
- actors.sql.go
- backfill.sql.go
- bitmaps.sql.go
- blocks.sql.go
- collections.sql.go
- db.go
- events.sql.go
- follow_counts.sql.go
- follows.sql.go
- hotness.sql.go
- images.sql.go
- keys.sql.go
- label_feeds.sql.go
- like_counts.sql.go
- likes.sql.go
- models.go
- pins.sql.go
- points.sql.go
- posts.sql.go
- recent_post_labels.sql.go
- recent_posts.sql.go
- refresh_stats.sql.go
- repo_cleanup_jobs.sql.go
- repost_counts.sql.go
- reposts.sql.go
- stats.sql.go
- subjects.sql.go
Click to show internal directories.
Click to hide internal directories.