search_queries

package
v0.0.0-...-1eb5c16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAuthorBlockParams

type AddAuthorBlockParams struct {
	ActorDid  string    `json:"actor_did"`
	TargetDid string    `json:"target_did"`
	CreatedAt time.Time `json:"created_at"`
}

type AddAuthorParams

type AddAuthorParams struct {
	Did    string `json:"did"`
	Handle string `json:"handle"`
}

type AddAuthorToClusterParams

type AddAuthorToClusterParams struct {
	AuthorDid string `json:"author_did"`
	ClusterID int32  `json:"cluster_id"`
}

type AddClusterParams

type AddClusterParams struct {
	LookupAlias string `json:"lookup_alias"`
	Name        string `json:"name"`
}

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 AddLabelParams struct {
	LookupAlias string `json:"lookup_alias"`
	Name        string `json:"name"`
}

type AddLikeToPostParams

type AddLikeToPostParams struct {
	PostID    string         `json:"post_id"`
	AuthorDid sql.NullString `json:"author_did"`
}

type AddPostLabelParams

type AddPostLabelParams struct {
	PostID    string `json:"post_id"`
	AuthorDid string `json:"author_did"`
	Label     string `json:"label"`
}

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 AssignLabelToAuthorParams

type AssignLabelToAuthorParams struct {
	AuthorDid string `json:"author_did"`
	LabelID   int64  `json:"label_id"`
}

type Author

type Author struct {
	Did           string `json:"did"`
	Handle        string `json:"handle"`
	ClusterOptOut bool   `json:"cluster_opt_out"`
}

type AuthorBlock

type AuthorBlock struct {
	ActorDid  string    `json:"actor_did"`
	TargetDid string    `json:"target_did"`
	CreatedAt time.Time `json:"created_at"`
}

type AuthorCluster

type AuthorCluster struct {
	AuthorDid string `json:"author_did"`
	ClusterID int32  `json:"cluster_id"`
}

type AuthorLabel

type AuthorLabel struct {
	AuthorDid string    `json:"author_did"`
	LabelID   int32     `json:"label_id"`
	CreatedAt time.Time `json:"created_at"`
}

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 Cluster

type Cluster struct {
	ID          int32  `json:"id"`
	LookupAlias string `json:"lookup_alias"`
	Name        string `json:"name"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type GetAllLabelsParams

type GetAllLabelsParams struct {
	Offset int32 `json:"offset"`
	Limit  int32 `json:"limit"`
}

type GetAllLabelsRow

type GetAllLabelsRow struct {
	ID          int64  `json:"id"`
	Name        string `json:"name"`
	LookupAlias string `json:"lookup_alias"`
}

type GetAllTimeBangersParams

type GetAllTimeBangersParams struct {
	Offset int32 `json:"offset"`
	Limit  int32 `json:"limit"`
}

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 GetAuthorBlockParams struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

type GetAuthorsByHandleRow

type GetAuthorsByHandleRow struct {
	Did    string `json:"did"`
	Handle string `json:"handle"`
}

type GetBangersForAuthorParams

type GetBangersForAuthorParams struct {
	Did    string `json:"did"`
	Offset int32  `json:"offset"`
	Limit  int32  `json:"limit"`
}

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 GetBlocksForTargetParams

type GetBlocksForTargetParams struct {
	TargetDid string `json:"target_did"`
	Limit     int32  `json:"limit"`
	Offset    int32  `json:"offset"`
}

type GetImageParams

type GetImageParams struct {
	Cid    string `json:"cid"`
	PostID string `json:"post_id"`
}

type GetLabelsForAuthorRow

type GetLabelsForAuthorRow struct {
	ID          int64  `json:"id"`
	Name        string `json:"name"`
	LookupAlias string `json:"lookup_alias"`
}

type GetLabelsParams

type GetLabelsParams struct {
	Limit  int32 `json:"limit"`
	Offset int32 `json:"offset"`
}

type GetMembersOfAuthorLabelRow

type GetMembersOfAuthorLabelRow struct {
	Did    string `json:"did"`
	Handle string `json:"handle"`
}

type GetMembersOfClusterRow

type GetMembersOfClusterRow struct {
	Did    string `json:"did"`
	Handle string `json:"handle"`
}

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 GetOnlyPostsPageByAuthorLabelAliasParams

type GetOnlyPostsPageByAuthorLabelAliasParams struct {
	LookupAlias string      `json:"lookup_alias"`
	Cursor      interface{} `json:"cursor"`
	HoursAgo    int32       `json:"hours_ago"`
	Limit       int32       `json:"limit"`
}

type GetPostPageCursorParams

type GetPostPageCursorParams struct {
	CreatedAt time.Time `json:"created_at"`
	Limit     int32     `json:"limit"`
}

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 GetPostPageParams struct {
	Limit  int32 `json:"limit"`
	Offset int32 `json:"offset"`
}

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 GetPostsPageByAuthorLabelAliasParams

type GetPostsPageByAuthorLabelAliasParams struct {
	LookupAlias string      `json:"lookup_alias"`
	Cursor      interface{} `json:"cursor"`
	HoursAgo    int32       `json:"hours_ago"`
	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 GetPostsPageByClusterAliasParams

type GetPostsPageByClusterAliasParams struct {
	LookupAlias string    `json:"lookup_alias"`
	CreatedAt   time.Time `json:"created_at"`
	Limit       int32     `json:"limit"`
	HoursAgo    int32     `json:"hours_ago"`
}

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 GetPostsPageWithAnyPostLabelParams

type GetPostsPageWithAnyPostLabelParams struct {
	Labels   string      `json:"labels"`
	Cursor   interface{} `json:"cursor"`
	HoursAgo int32       `json:"hours_ago"`
	Limit    int32       `json:"limit"`
}

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 GetPostsPageWithAnyPostLabelSortedByHotnessParams

type GetPostsPageWithAnyPostLabelSortedByHotnessParams struct {
	Labels []string `json:"labels"`
	Cursor float64  `json:"cursor"`
	Limit  int32    `json:"limit"`
}

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 GetPostsPageWithPostLabelChronologicalParams

type GetPostsPageWithPostLabelChronologicalParams struct {
	Label     string    `json:"label"`
	CreatedAt time.Time `json:"created_at"`
	Limit     int32     `json:"limit"`
}

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 GetPostsPageWithPostLabelParams

type GetPostsPageWithPostLabelParams struct {
	Label    string      `json:"label"`
	Cursor   interface{} `json:"cursor"`
	HoursAgo int32       `json:"hours_ago"`
	Limit    int32       `json:"limit"`
}

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 GetPostsPageWithPostLabelSortedByHotnessParams

type GetPostsPageWithPostLabelSortedByHotnessParams struct {
	Label  interface{} `json:"label"`
	Cursor float64     `json:"cursor"`
	Limit  int32       `json:"limit"`
}

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 GetThreadViewParams struct {
	ID        string `json:"id"`
	AuthorDid string `json:"author_did"`
}

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 GetUnindexedPostPageParams

type GetUnindexedPostPageParams struct {
	Limit  int32 `json:"limit"`
	Offset int32 `json:"offset"`
}

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 Label

type Label struct {
	ID          int64  `json:"id"`
	LookupAlias string `json:"lookup_alias"`
	Name        string `json:"name"`
}

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 PostLabel

type PostLabel struct {
	PostID    string `json:"post_id"`
	AuthorDid string `json:"author_did"`
	Label     string `json:"label"`
}

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 New

func New(db DBTX) *Queries

func Prepare

func Prepare(ctx context.Context, db DBTX) (*Queries, error)

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 (q *Queries) AddCluster(ctx context.Context, arg AddClusterParams) (Cluster, error)

func (*Queries) AddImage

func (q *Queries) AddImage(ctx context.Context, arg AddImageParams) error

func (*Queries) AddLabel

func (q *Queries) AddLabel(ctx context.Context, arg AddLabelParams) (Label, error)

func (*Queries) AddLabelsToPosts

func (q *Queries) AddLabelsToPosts(ctx context.Context, dollar_1 json.RawMessage) error

func (*Queries) AddLikeToPost

func (q *Queries) AddLikeToPost(ctx context.Context, arg AddLikeToPostParams) error

func (*Queries) AddPost

func (q *Queries) AddPost(ctx context.Context, arg AddPostParams) 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) Close

func (q *Queries) Close() 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 (q *Queries) GetAllUniquePostLabels(ctx context.Context) ([]string, error)

func (*Queries) GetAuthor

func (q *Queries) GetAuthor(ctx context.Context, did string) (Author, error)

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 (q *Queries) GetAuthorsByHandle(ctx context.Context, handle string) ([]GetAuthorsByHandleRow, error)

func (*Queries) GetBangersForAuthor

func (q *Queries) GetBangersForAuthor(ctx context.Context, arg GetBangersForAuthorParams) ([]GetBangersForAuthorRow, error)

func (*Queries) GetBlockedByCountForTarget

func (q *Queries) GetBlockedByCountForTarget(ctx context.Context, targetDid string) (int64, error)

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) GetClusters

func (q *Queries) GetClusters(ctx context.Context) ([]Cluster, error)

func (*Queries) GetImage

func (q *Queries) GetImage(ctx context.Context, arg GetImageParams) (Image, error)

func (*Queries) GetImagesForAuthorDID

func (q *Queries) GetImagesForAuthorDID(ctx context.Context, authorDid string) ([]Image, error)

func (*Queries) GetImagesForPost

func (q *Queries) GetImagesForPost(ctx context.Context, postID string) ([]Image, error)

func (*Queries) GetLabelByAlias

func (q *Queries) GetLabelByAlias(ctx context.Context, lookupAlias string) (Label, error)

func (*Queries) GetLabels

func (q *Queries) GetLabels(ctx context.Context, arg GetLabelsParams) ([]Label, error)

func (*Queries) GetLabelsForAuthor

func (q *Queries) GetLabelsForAuthor(ctx context.Context, authorDid string) ([]GetLabelsForAuthorRow, error)

func (*Queries) GetMembersOfAuthorLabel

func (q *Queries) GetMembersOfAuthorLabel(ctx context.Context, labelID int64) ([]GetMembersOfAuthorLabelRow, error)

func (*Queries) GetMembersOfCluster

func (q *Queries) GetMembersOfCluster(ctx context.Context, clusterID int32) ([]GetMembersOfClusterRow, error)

func (*Queries) GetOldestPresentParent

func (q *Queries) GetOldestPresentParent(ctx context.Context, id string) (GetOldestPresentParentRow, error)

func (*Queries) GetOnlyPostsPageByAuthorLabelAlias

func (q *Queries) GetOnlyPostsPageByAuthorLabelAlias(ctx context.Context, arg GetOnlyPostsPageByAuthorLabelAliasParams) ([]Post, error)

func (*Queries) GetOnlyPostsPageByAuthorLabelAliasFromView

func (q *Queries) GetOnlyPostsPageByAuthorLabelAliasFromView(ctx context.Context, arg GetOnlyPostsPageByAuthorLabelAliasFromViewParams) ([]PostHotness, error)

func (*Queries) GetOptedOutAuthors

func (q *Queries) GetOptedOutAuthors(ctx context.Context) ([]Author, error)

func (*Queries) GetPost

func (q *Queries) GetPost(ctx context.Context, id string) (GetPostRow, error)

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 (q *Queries) GetPostWithAuthorHandle(ctx context.Context, id string) (GetPostWithAuthorHandleRow, error)

func (*Queries) GetPostsPageByAuthorLabelAlias

func (q *Queries) GetPostsPageByAuthorLabelAlias(ctx context.Context, arg GetPostsPageByAuthorLabelAliasParams) ([]Post, error)

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) GetPostsPageWithPostLabel

func (q *Queries) GetPostsPageWithPostLabel(ctx context.Context, arg GetPostsPageWithPostLabelParams) ([]GetPostsPageWithPostLabelRow, error)

func (*Queries) GetThreadView

func (q *Queries) GetThreadView(ctx context.Context, arg GetThreadViewParams) ([]GetThreadViewRow, error)

func (*Queries) GetTopPosters

func (q *Queries) GetTopPosters(ctx context.Context, limit int32) ([]TopPoster, error)

func (*Queries) GetUnindexedPostPage

func (q *Queries) GetUnindexedPostPage(ctx context.Context, arg GetUnindexedPostPageParams) ([]Post, error)

func (*Queries) GetUnprocessedImages

func (q *Queries) GetUnprocessedImages(ctx context.Context, limit int32) ([]Image, error)

func (*Queries) RemoveAuthorBlock

func (q *Queries) RemoveAuthorBlock(ctx context.Context, arg RemoveAuthorBlockParams) error

func (*Queries) RemoveLikeFromPost

func (q *Queries) RemoveLikeFromPost(ctx context.Context, postID string) error

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

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type RemoveAuthorBlockParams

type RemoveAuthorBlockParams struct {
	ActorDid  string `json:"actor_did"`
	TargetDid string `json:"target_did"`
}

type SetPostIndexedTimestampParams

type SetPostIndexedTimestampParams struct {
	IndexedAt sql.NullTime `json:"indexed_at"`
	PostIds   []string     `json:"post_ids"`
}

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 TopPoster

type TopPoster struct {
	PostCount int64  `json:"post_count"`
	Handle    string `json:"handle"`
	AuthorDid string `json:"author_did"`
}

type UnassignLabelFromAuthorParams

type UnassignLabelFromAuthorParams struct {
	AuthorDid string `json:"author_did"`
	LabelID   int64  `json:"label_id"`
}

type UpdateAuthorOptOutParams

type UpdateAuthorOptOutParams struct {
	Did           string `json:"did"`
	ClusterOptOut bool   `json:"cluster_opt_out"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL