Documentation ¶
Index ¶
- type ActorProfile
- type ActorStatus
- type AuditEvent
- type CandidateActor
- type CandidateFollow
- type CandidateLike
- type CandidatePost
- type CreateAuditEventParams
- type CreateCandidateActorParams
- type CreateCandidateFollowParams
- type CreateCandidateLikeParams
- type CreateCandidatePostParams
- type CreateLatestActorProfileParams
- type DBTX
- type EnqueueFollowTaskParams
- type FirehoseCommitCursor
- type FollowTask
- type GetFurryNewFeedParams
- type HoldBackPendingActorParams
- type JetstreamCursor
- type ListAuditEventsParams
- type ListScoredPostsParams
- type ListScoredPostsRow
- type MarkFollowTaskAsErroredParams
- type NullActorStatus
- type PostScore
- type Queries
- func (q *Queries) CreateAuditEvent(ctx context.Context, arg CreateAuditEventParams) (AuditEvent, error)
- func (q *Queries) CreateCandidateActor(ctx context.Context, arg CreateCandidateActorParams) (CandidateActor, error)
- func (q *Queries) CreateCandidateFollow(ctx context.Context, arg CreateCandidateFollowParams) error
- func (q *Queries) CreateCandidateLike(ctx context.Context, arg CreateCandidateLikeParams) error
- func (q *Queries) CreateCandidatePost(ctx context.Context, arg CreateCandidatePostParams) error
- func (q *Queries) CreateLatestActorProfile(ctx context.Context, arg CreateLatestActorProfileParams) error
- func (q *Queries) DeleteOldPostScores(ctx context.Context, before pgtype.Timestamptz) (int64, error)
- func (q *Queries) EnqueueFollowTask(ctx context.Context, arg EnqueueFollowTaskParams) error
- func (q *Queries) GetActorProfileHistory(ctx context.Context, actorDid string) ([]ActorProfile, error)
- func (q *Queries) GetCandidateActorByDID(ctx context.Context, did string) (CandidateActor, error)
- func (q *Queries) GetFurryNewFeed(ctx context.Context, arg GetFurryNewFeedParams) ([]CandidatePost, error)
- func (q *Queries) GetJetstreamCursor(ctx context.Context) (int64, error)
- func (q *Queries) GetLatestActorProfile(ctx context.Context, did string) (ActorProfile, error)
- func (q *Queries) GetLatestScoreGeneration(ctx context.Context, alg string) (int64, error)
- func (q *Queries) GetNextFollowTask(ctx context.Context) (FollowTask, error)
- func (q *Queries) GetPostByURI(ctx context.Context, uri string) (CandidatePost, error)
- func (q *Queries) HoldBackPendingActor(ctx context.Context, arg HoldBackPendingActorParams) error
- func (q *Queries) ListAuditEvents(ctx context.Context, arg ListAuditEventsParams) ([]AuditEvent, error)
- func (q *Queries) ListCandidateActors(ctx context.Context, status NullActorStatus) ([]CandidateActor, error)
- func (q *Queries) ListCandidateActorsRequiringProfileBackfill(ctx context.Context) ([]CandidateActor, error)
- func (q *Queries) ListScoredPosts(ctx context.Context, arg ListScoredPostsParams) ([]ListScoredPostsRow, error)
- func (q *Queries) MarkFollowTaskAsDone(ctx context.Context, id int64) error
- func (q *Queries) MarkFollowTaskAsErrored(ctx context.Context, arg MarkFollowTaskAsErroredParams) error
- func (q *Queries) MaterializePostScores(ctx context.Context, after pgtype.Timestamptz) (int64, error)
- func (q *Queries) SetJetstreamCursor(ctx context.Context, cursor int64) error
- func (q *Queries) SoftDeleteCandidateFollow(ctx context.Context, uri string) error
- func (q *Queries) SoftDeleteCandidateLike(ctx context.Context, uri string) error
- func (q *Queries) SoftDeleteCandidatePost(ctx context.Context, uri string) error
- func (q *Queries) UpdateCandidateActor(ctx context.Context, arg UpdateCandidateActorParams) (CandidateActor, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type UpdateCandidateActorParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorProfile ¶ added in v0.0.14
type ActorStatus ¶
type ActorStatus string
const ( ActorStatusNone ActorStatus = "none" ActorStatusPending ActorStatus = "pending" ActorStatusApproved ActorStatus = "approved" ActorStatusBanned ActorStatus = "banned" )
func (*ActorStatus) Scan ¶
func (e *ActorStatus) Scan(src interface{}) error
type AuditEvent ¶ added in v0.0.11
type CandidateActor ¶
type CandidateActor struct { DID string CreatedAt pgtype.Timestamptz IsArtist bool Comment string Status ActorStatus Roles []string CurrentProfileCommitCid pgtype.Text HeldUntil pgtype.Timestamptz }
type CandidateFollow ¶
type CandidateFollow struct { URI string ActorDID string SubjectDid string CreatedAt pgtype.Timestamptz IndexedAt pgtype.Timestamptz DeletedAt pgtype.Timestamptz }
type CandidateLike ¶
type CandidateLike struct { URI string ActorDID string SubjectURI string CreatedAt pgtype.Timestamptz IndexedAt pgtype.Timestamptz DeletedAt pgtype.Timestamptz }
type CandidatePost ¶
type CreateAuditEventParams ¶ added in v0.0.11
type CreateCandidateActorParams ¶
type CreateCandidateActorParams struct { DID string CreatedAt pgtype.Timestamptz IsArtist bool Comment string Status ActorStatus Roles []string }
type CreateCandidateFollowParams ¶
type CreateCandidateFollowParams struct { URI string ActorDID string SubjectDid string CreatedAt pgtype.Timestamptz IndexedAt pgtype.Timestamptz }
type CreateCandidateLikeParams ¶
type CreateCandidateLikeParams struct { URI string ActorDID string SubjectURI string CreatedAt pgtype.Timestamptz IndexedAt pgtype.Timestamptz }
type CreateLatestActorProfileParams ¶ added in v0.0.14
type EnqueueFollowTaskParams ¶ added in v0.0.76
type EnqueueFollowTaskParams struct { ActorDID string NextTryAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz ShouldUnfollow bool }
type FirehoseCommitCursor ¶ added in v0.0.21
type FirehoseCommitCursor struct {
Cursor int64
}
type FollowTask ¶ added in v0.0.76
type FollowTask struct { ID int64 ActorDID string NextTryAt pgtype.Timestamptz CreatedAt pgtype.Timestamptz Tries int32 ShouldUnfollow bool FinishedAt pgtype.Timestamptz LastError pgtype.Text }
type GetFurryNewFeedParams ¶
type HoldBackPendingActorParams ¶ added in v0.0.38
type HoldBackPendingActorParams struct { HeldUntil pgtype.Timestamptz DID string }
type JetstreamCursor ¶ added in v0.0.69
type JetstreamCursor struct {
Cursor int64
}
type ListAuditEventsParams ¶ added in v0.0.11
type ListScoredPostsParams ¶ added in v0.0.27
type ListScoredPostsRow ¶ added in v0.0.27
type MarkFollowTaskAsErroredParams ¶ added in v0.0.76
type MarkFollowTaskAsErroredParams struct { ID int64 NextTryAt pgtype.Timestamptz LastError pgtype.Text }
type NullActorStatus ¶
type NullActorStatus struct { ActorStatus ActorStatus Valid bool // Valid is true if ActorStatus is not NULL }
func (*NullActorStatus) Scan ¶
func (ns *NullActorStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAuditEvent ¶ added in v0.0.11
func (q *Queries) CreateAuditEvent(ctx context.Context, arg CreateAuditEventParams) (AuditEvent, error)
func (*Queries) CreateCandidateActor ¶
func (q *Queries) CreateCandidateActor(ctx context.Context, arg CreateCandidateActorParams) (CandidateActor, error)
func (*Queries) CreateCandidateFollow ¶
func (q *Queries) CreateCandidateFollow(ctx context.Context, arg CreateCandidateFollowParams) error
func (*Queries) CreateCandidateLike ¶
func (q *Queries) CreateCandidateLike(ctx context.Context, arg CreateCandidateLikeParams) error
func (*Queries) CreateCandidatePost ¶
func (q *Queries) CreateCandidatePost(ctx context.Context, arg CreateCandidatePostParams) error
func (*Queries) CreateLatestActorProfile ¶ added in v0.0.14
func (q *Queries) CreateLatestActorProfile(ctx context.Context, arg CreateLatestActorProfileParams) error
func (*Queries) DeleteOldPostScores ¶ added in v0.0.27
func (*Queries) EnqueueFollowTask ¶ added in v0.0.76
func (q *Queries) EnqueueFollowTask(ctx context.Context, arg EnqueueFollowTaskParams) error
func (*Queries) GetActorProfileHistory ¶ added in v0.0.17
func (*Queries) GetCandidateActorByDID ¶
func (*Queries) GetFurryNewFeed ¶
func (q *Queries) GetFurryNewFeed(ctx context.Context, arg GetFurryNewFeedParams) ([]CandidatePost, error)
func (*Queries) GetJetstreamCursor ¶ added in v0.0.69
func (*Queries) GetLatestActorProfile ¶ added in v0.0.17
func (*Queries) GetLatestScoreGeneration ¶ added in v0.0.27
func (*Queries) GetNextFollowTask ¶ added in v0.0.76
func (q *Queries) GetNextFollowTask(ctx context.Context) (FollowTask, error)
func (*Queries) GetPostByURI ¶ added in v0.0.15
func (*Queries) HoldBackPendingActor ¶ added in v0.0.38
func (q *Queries) HoldBackPendingActor(ctx context.Context, arg HoldBackPendingActorParams) error
func (*Queries) ListAuditEvents ¶ added in v0.0.11
func (q *Queries) ListAuditEvents(ctx context.Context, arg ListAuditEventsParams) ([]AuditEvent, error)
func (*Queries) ListCandidateActors ¶
func (q *Queries) ListCandidateActors(ctx context.Context, status NullActorStatus) ([]CandidateActor, error)
func (*Queries) ListCandidateActorsRequiringProfileBackfill ¶ added in v0.0.14
func (q *Queries) ListCandidateActorsRequiringProfileBackfill(ctx context.Context) ([]CandidateActor, error)
func (*Queries) ListScoredPosts ¶ added in v0.0.27
func (q *Queries) ListScoredPosts(ctx context.Context, arg ListScoredPostsParams) ([]ListScoredPostsRow, error)
func (*Queries) MarkFollowTaskAsDone ¶ added in v0.0.76
func (*Queries) MarkFollowTaskAsErrored ¶ added in v0.0.76
func (q *Queries) MarkFollowTaskAsErrored(ctx context.Context, arg MarkFollowTaskAsErroredParams) error
func (*Queries) MaterializePostScores ¶ added in v0.0.27
func (*Queries) SetJetstreamCursor ¶ added in v0.0.69
func (*Queries) SoftDeleteCandidateFollow ¶
func (*Queries) SoftDeleteCandidateLike ¶
func (*Queries) SoftDeleteCandidatePost ¶
func (*Queries) UpdateCandidateActor ¶
func (q *Queries) UpdateCandidateActor(ctx context.Context, arg UpdateCandidateActorParams) (CandidateActor, error)
Click to show internal directories.
Click to hide internal directories.