Documentation ¶
Index ¶
- Variables
- type CloudSQLConnector
- type CreateActorOpts
- type CreateAuditEventOpts
- type CreateFollowOpts
- type CreateLatestActorProfileOpts
- type CreateLikeOpts
- type CreatePostOpts
- type DeleteFollowOpts
- type DeleteLikeOpts
- type DeletePostOpts
- type DirectConnector
- type ListActorsOpts
- type ListAuditEventsOpts
- type ListPostsForHotFeedCursor
- type ListPostsForHotFeedOpts
- type ListPostsForNewFeedOpts
- type ListPostsWithLikesOpts
- type PGXStore
- func (s *PGXStore) Close()
- func (s *PGXStore) CreateActor(ctx context.Context, opts CreateActorOpts) (out *v1.Actor, err error)
- func (s *PGXStore) CreateAuditEvent(ctx context.Context, opts CreateAuditEventOpts) (out *v1.AuditEvent, err error)
- func (s *PGXStore) CreateFollow(ctx context.Context, opts CreateFollowOpts) (err error)
- func (s *PGXStore) CreateLatestActorProfile(ctx context.Context, opts CreateLatestActorProfileOpts) (err error)
- func (s *PGXStore) CreateLike(ctx context.Context, opts CreateLikeOpts) (err error)
- func (s *PGXStore) CreatePost(ctx context.Context, opts CreatePostOpts) (err error)
- func (s *PGXStore) DeleteFollow(ctx context.Context, opts DeleteFollowOpts) (err error)
- func (s *PGXStore) DeleteLike(ctx context.Context, opts DeleteLikeOpts) (err error)
- func (s *PGXStore) DeleteOldPostScores(ctx context.Context, before time.Time) (int64, error)
- func (s *PGXStore) DeletePost(ctx context.Context, opts DeletePostOpts) (err error)
- func (s *PGXStore) EnqueueFollow(ctx context.Context, did string) error
- func (s *PGXStore) EnqueueUnfollow(ctx context.Context, did string) error
- func (s *PGXStore) GetActorByDID(ctx context.Context, did string) (out *v1.Actor, err error)
- func (s *PGXStore) GetActorProfileHistory(ctx context.Context, did string) (out []gen.ActorProfile, err error)
- func (s *PGXStore) GetJetstreamCursor(ctx context.Context) (out int64, err error)
- func (s *PGXStore) GetLatestActorProfile(ctx context.Context, did string) (out gen.ActorProfile, err error)
- func (s *PGXStore) GetLatestScoreGeneration(ctx context.Context, alg string) (out int64, err error)
- func (s *PGXStore) GetNextFollowTask(ctx context.Context) (gen.FollowTask, error)
- func (s *PGXStore) GetPostByURI(ctx context.Context, uri string) (out gen.CandidatePost, err error)
- func (s *PGXStore) HoldBackPendingActor(ctx context.Context, did string, duration time.Time) error
- func (s *PGXStore) ListActors(ctx context.Context, opts ListActorsOpts) (out []*v1.Actor, err error)
- func (s *PGXStore) ListAuditEvents(ctx context.Context, opts ListAuditEventsOpts) (out []*v1.AuditEvent, err error)
- func (s *PGXStore) ListPostsForNewFeed(ctx context.Context, opts ListPostsForNewFeedOpts) (out []gen.CandidatePost, err error)
- func (s *PGXStore) ListScoredPosts(ctx context.Context, opts ListPostsForHotFeedOpts) (out []gen.ListScoredPostsRow, err error)
- func (s *PGXStore) MarkFollowTaskAsDone(ctx context.Context, id int64) error
- func (s *PGXStore) MarkFollowTaskAsErrored(ctx context.Context, id int64, err error) error
- func (s *PGXStore) MaterializeClassicPostScores(ctx context.Context, after time.Time) (int64, error)
- func (s *PGXStore) SetJetstreamCursor(ctx context.Context, cursor int64) (err error)
- func (s *PGXStore) TX(ctx context.Context) (*PGXTX, error)
- func (s *PGXStore) UpdateActor(ctx context.Context, opts UpdateActorOpts) (out *v1.Actor, err error)
- type PGXTX
- type PoolConnector
- type UpdateActorOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound indicates that no resource was found during a store call. ErrNotFound = fmt.Errorf("not found") )
Functions ¶
This section is empty.
Types ¶
type CloudSQLConnector ¶ added in v0.0.4
type CreateActorOpts ¶ added in v0.0.4
type CreateActorOpts struct { DID string Comment string Status v1.ActorStatus Roles []string }
type CreateAuditEventOpts ¶ added in v0.0.11
type CreateFollowOpts ¶ added in v0.0.4
type CreateLatestActorProfileOpts ¶ added in v0.0.14
type CreateLatestActorProfileOpts struct { // DID is the DID of the actor to update. ActorDID string // CommitCID is now used for the repo rev at the commit // that set this version of the profile. CommitCID string CreatedAt time.Time IndexedAt time.Time DisplayName string Description string SelfLabels []string }
type CreateLikeOpts ¶ added in v0.0.4
type CreatePostOpts ¶ added in v0.0.4
type DeleteFollowOpts ¶ added in v0.0.4
type DeleteFollowOpts struct {
URI string
}
type DeleteLikeOpts ¶ added in v0.0.4
type DeleteLikeOpts struct {
URI string
}
type DeletePostOpts ¶ added in v0.0.4
type DeletePostOpts struct {
URI string
}
type DirectConnector ¶ added in v0.0.4
type DirectConnector struct {
URI string
}
type ListActorsOpts ¶ added in v0.0.4
type ListActorsOpts struct {
FilterStatus v1.ActorStatus
}
type ListAuditEventsOpts ¶ added in v0.0.11
type ListPostsForHotFeedCursor ¶ added in v0.0.27
type ListPostsForHotFeedOpts ¶ added in v0.0.27
type ListPostsForNewFeedOpts ¶ added in v0.0.4
type ListPostsWithLikesOpts ¶ added in v0.0.4
type PGXStore ¶ added in v0.0.4
type PGXStore struct {
// contains filtered or unexported fields
}
func ConnectPGXStore ¶ added in v0.0.4
func (*PGXStore) CreateActor ¶ added in v0.0.4
func (*PGXStore) CreateAuditEvent ¶ added in v0.0.11
func (s *PGXStore) CreateAuditEvent(ctx context.Context, opts CreateAuditEventOpts) (out *v1.AuditEvent, err error)
func (*PGXStore) CreateFollow ¶ added in v0.0.4
func (s *PGXStore) CreateFollow(ctx context.Context, opts CreateFollowOpts) (err error)
func (*PGXStore) CreateLatestActorProfile ¶ added in v0.0.14
func (s *PGXStore) CreateLatestActorProfile(ctx context.Context, opts CreateLatestActorProfileOpts) (err error)
func (*PGXStore) CreateLike ¶ added in v0.0.4
func (s *PGXStore) CreateLike(ctx context.Context, opts CreateLikeOpts) (err error)
func (*PGXStore) CreatePost ¶ added in v0.0.4
func (s *PGXStore) CreatePost(ctx context.Context, opts CreatePostOpts) (err error)
func (*PGXStore) DeleteFollow ¶ added in v0.0.4
func (s *PGXStore) DeleteFollow(ctx context.Context, opts DeleteFollowOpts) (err error)
func (*PGXStore) DeleteLike ¶ added in v0.0.4
func (s *PGXStore) DeleteLike(ctx context.Context, opts DeleteLikeOpts) (err error)
func (*PGXStore) DeleteOldPostScores ¶ added in v0.0.27
func (*PGXStore) DeletePost ¶ added in v0.0.4
func (s *PGXStore) DeletePost(ctx context.Context, opts DeletePostOpts) (err error)
func (*PGXStore) EnqueueFollow ¶ added in v0.0.76
func (*PGXStore) EnqueueUnfollow ¶ added in v0.0.76
func (*PGXStore) GetActorByDID ¶ added in v0.0.9
func (*PGXStore) GetActorProfileHistory ¶ added in v0.0.17
func (*PGXStore) GetJetstreamCursor ¶ added in v0.0.69
func (*PGXStore) GetLatestActorProfile ¶ added in v0.0.17
func (*PGXStore) GetLatestScoreGeneration ¶ added in v0.0.27
func (*PGXStore) GetNextFollowTask ¶ added in v0.0.76
func (*PGXStore) GetPostByURI ¶ added in v0.0.15
func (*PGXStore) HoldBackPendingActor ¶ added in v0.0.38
func (*PGXStore) ListActors ¶ added in v0.0.4
func (*PGXStore) ListAuditEvents ¶ added in v0.0.11
func (s *PGXStore) ListAuditEvents(ctx context.Context, opts ListAuditEventsOpts) (out []*v1.AuditEvent, err error)
func (*PGXStore) ListPostsForNewFeed ¶ added in v0.0.4
func (s *PGXStore) ListPostsForNewFeed(ctx context.Context, opts ListPostsForNewFeedOpts) (out []gen.CandidatePost, err error)
func (*PGXStore) ListScoredPosts ¶ added in v0.0.27
func (s *PGXStore) ListScoredPosts(ctx context.Context, opts ListPostsForHotFeedOpts) (out []gen.ListScoredPostsRow, err error)
func (*PGXStore) MarkFollowTaskAsDone ¶ added in v0.0.76
func (*PGXStore) MarkFollowTaskAsErrored ¶ added in v0.0.76
func (*PGXStore) MaterializeClassicPostScores ¶ added in v0.0.27
func (*PGXStore) SetJetstreamCursor ¶ added in v0.0.69
func (*PGXStore) UpdateActor ¶ added in v0.0.4
type PGXTX ¶ added in v0.0.21
type PGXTX struct { *PGXStore // contains filtered or unexported fields }
type PoolConnector ¶ added in v0.0.4
type PoolConnector interface {
// contains filtered or unexported methods
}
type UpdateActorOpts ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.