gen

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 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 ActorProfile added in v0.0.14

type ActorProfile struct {
	ActorDID    string
	CommitCID   string
	CreatedAt   pgtype.Timestamptz
	IndexedAt   pgtype.Timestamptz
	DisplayName pgtype.Text
	Description pgtype.Text
}

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 AuditEvent struct {
	ID               string
	ActorDID         string
	SubjectDid       string
	SubjectRecordUri string
	CreatedAt        pgtype.Timestamptz
	Payload          []byte
}

type CandidateActor

type CandidateActor struct {
	DID                     string
	CreatedAt               pgtype.Timestamptz
	IsArtist                bool
	Comment                 string
	IsNSFW                  bool
	IsHidden                bool
	Status                  ActorStatus
	Roles                   []string
	CurrentProfileCommitCid pgtype.Text
}

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 CandidatePost struct {
	URI       string
	ActorDID  string
	CreatedAt pgtype.Timestamptz
	IndexedAt pgtype.Timestamptz
	IsNSFW    bool
	IsHidden  bool
	Tags      []string
	DeletedAt pgtype.Timestamptz
	Raw       *bsky.FeedPost
	Hashtags  []string
	HasMedia  pgtype.Bool
}

type CreateAuditEventParams added in v0.0.11

type CreateAuditEventParams struct {
	ID               string
	CreatedAt        pgtype.Timestamptz
	ActorDID         string
	SubjectDid       string
	SubjectRecordUri string
	Payload          []byte
}

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 CreateCandidatePostParams

type CreateCandidatePostParams struct {
	URI       string
	ActorDID  string
	CreatedAt pgtype.Timestamptz
	IndexedAt pgtype.Timestamptz
	Hashtags  []string
	HasMedia  pgtype.Bool
	Raw       *bsky.FeedPost
}

type CreateLatestActorProfileParams added in v0.0.14

type CreateLatestActorProfileParams struct {
	ActorDID    string
	CommitCID   string
	CreatedAt   pgtype.Timestamptz
	IndexedAt   pgtype.Timestamptz
	DisplayName pgtype.Text
	Description pgtype.Text
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type GetFurryNewFeedParams

type GetFurryNewFeedParams struct {
	Hashtags        []string
	HasMedia        pgtype.Bool
	IsNSFW          pgtype.Bool
	CursorTimestamp pgtype.Timestamptz
	Limit           int32
}

type GetPostsWithLikesParams

type GetPostsWithLikesParams struct {
	CursorTimestamp pgtype.Timestamptz
	Limit           int32
}

type GetPostsWithLikesRow

type GetPostsWithLikesRow struct {
	URI       string
	ActorDID  string
	CreatedAt pgtype.Timestamptz
	IndexedAt pgtype.Timestamptz
	IsNSFW    bool
	IsHidden  bool
	Tags      []string
	DeletedAt pgtype.Timestamptz
	Raw       *bsky.FeedPost
	Hashtags  []string
	HasMedia  pgtype.Bool
	Likes     int64
}

type ListAuditEventsParams added in v0.0.11

type ListAuditEventsParams struct {
	SubjectDid       string
	ActorDID         string
	SubjectRecordUri string
	CreatedBefore    pgtype.Timestamptz
	Limit            int32
}

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.

func (NullActorStatus) Value

func (ns NullActorStatus) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Queries

type Queries struct {
}

func New

func New() *Queries

func (*Queries) CreateAuditEvent added in v0.0.11

func (q *Queries) CreateAuditEvent(ctx context.Context, db DBTX, arg CreateAuditEventParams) (AuditEvent, error)

func (*Queries) CreateCandidateActor

func (q *Queries) CreateCandidateActor(ctx context.Context, db DBTX, arg CreateCandidateActorParams) (CandidateActor, error)

func (*Queries) CreateCandidateFollow

func (q *Queries) CreateCandidateFollow(ctx context.Context, db DBTX, arg CreateCandidateFollowParams) error

func (*Queries) CreateCandidateLike

func (q *Queries) CreateCandidateLike(ctx context.Context, db DBTX, arg CreateCandidateLikeParams) error

func (*Queries) CreateCandidatePost

func (q *Queries) CreateCandidatePost(ctx context.Context, db DBTX, arg CreateCandidatePostParams) error

func (*Queries) CreateLatestActorProfile added in v0.0.14

func (q *Queries) CreateLatestActorProfile(ctx context.Context, db DBTX, arg CreateLatestActorProfileParams) error

func (*Queries) GetActorProfileHistory added in v0.0.17

func (q *Queries) GetActorProfileHistory(ctx context.Context, db DBTX, actorDid string) ([]ActorProfile, error)

func (*Queries) GetCandidateActorByDID

func (q *Queries) GetCandidateActorByDID(ctx context.Context, db DBTX, did string) (CandidateActor, error)

func (*Queries) GetFurryNewFeed

func (q *Queries) GetFurryNewFeed(ctx context.Context, db DBTX, arg GetFurryNewFeedParams) ([]CandidatePost, error)

func (*Queries) GetLatestActorProfile added in v0.0.17

func (q *Queries) GetLatestActorProfile(ctx context.Context, db DBTX, did string) (ActorProfile, error)

func (*Queries) GetPostByURI added in v0.0.15

func (q *Queries) GetPostByURI(ctx context.Context, db DBTX, uri string) (CandidatePost, error)

func (*Queries) GetPostsWithLikes

func (q *Queries) GetPostsWithLikes(ctx context.Context, db DBTX, arg GetPostsWithLikesParams) ([]GetPostsWithLikesRow, error)

func (*Queries) ListAuditEvents added in v0.0.11

func (q *Queries) ListAuditEvents(ctx context.Context, db DBTX, arg ListAuditEventsParams) ([]AuditEvent, error)

func (*Queries) ListCandidateActors

func (q *Queries) ListCandidateActors(ctx context.Context, db DBTX, status NullActorStatus) ([]CandidateActor, error)

func (*Queries) ListCandidateActorsRequiringProfileBackfill added in v0.0.14

func (q *Queries) ListCandidateActorsRequiringProfileBackfill(ctx context.Context, db DBTX) ([]CandidateActor, error)

func (*Queries) SoftDeleteCandidateFollow

func (q *Queries) SoftDeleteCandidateFollow(ctx context.Context, db DBTX, uri string) error

func (*Queries) SoftDeleteCandidateLike

func (q *Queries) SoftDeleteCandidateLike(ctx context.Context, db DBTX, uri string) error

func (*Queries) SoftDeleteCandidatePost

func (q *Queries) SoftDeleteCandidatePost(ctx context.Context, db DBTX, uri string) error

func (*Queries) UpdateCandidateActor

func (q *Queries) UpdateCandidateActor(ctx context.Context, db DBTX, arg UpdateCandidateActorParams) (CandidateActor, error)

type UpdateCandidateActorParams

type UpdateCandidateActorParams struct {
	Status   NullActorStatus
	IsArtist pgtype.Bool
	Comment  pgtype.Text
	DID      string
}

Jump to

Keyboard shortcuts

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