Documentation
¶
Overview ¶
Package fetch turns durable River pointers into budget-gated authoritative GitHub fetches and transactional mirror writes.
Index ¶
- func SortedPullRequestKeys(records []store.PullRequestRecord) []string
- func StartBackfill(ctx context.Context, pool *pgxpool.Pool, client *river.Client[pgx.Tx], ...) (dbgen.BackfillCursor, error)
- func StartInstallationBackfill(ctx context.Context, pool *pgxpool.Pool, client *river.Client[pgx.Tx], ...) (dbgen.InstallationBackfillCursor, error)
- type BranchObserver
- type Handler
- func (h *Handler) BackfillInstallationPage(ctx context.Context, args queue.BackfillInstallationPageArgs) error
- func (h *Handler) BackfillRepoPage(ctx context.Context, args queue.BackfillRepoPageArgs) error
- func (h *Handler) ReconcileBranchPage(ctx context.Context, args *queue.BranchReconcilePageArgs) error
- func (h *Handler) RefreshBranch(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) RefreshChecks(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) RefreshPR(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) RefreshRepoRules(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) RefreshRepository(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) RefreshStack(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) ResolveStackMembership(ctx context.Context, request queue.RefreshRequest) error
- func (h *Handler) SetRiverClient(client *river.Client[pgx.Tx])
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortedPullRequestKeys ¶
func SortedPullRequestKeys(records []store.PullRequestRecord) []string
func StartBackfill ¶
func StartBackfill( ctx context.Context, pool *pgxpool.Pool, client *river.Client[pgx.Tx], installationID int64, repoFullName string, ) (dbgen.BackfillCursor, error)
StartBackfill remains a focused test/ops seam; production CLI onboarding uses StartInstallationBackfill so C-O5 begins at installation enumeration.
Types ¶
type BranchObserver ¶ added in v0.5.0
BranchObserver reports bounded page outcomes without exposing raw entity keys as metric attributes.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) BackfillInstallationPage ¶
func (*Handler) BackfillRepoPage ¶
func (*Handler) ReconcileBranchPage ¶ added in v0.5.0
func (h *Handler) ReconcileBranchPage( ctx context.Context, args *queue.BranchReconcilePageArgs, ) error
ReconcileBranchPage performs remote-only reconciliation for one bounded subset. All GitHub calls finish before each independently fenced entity transaction, and page bookkeeping starts only after every target finishes (C-C6).
func (*Handler) RefreshBranch ¶
func (*Handler) RefreshChecks ¶
func (*Handler) RefreshRepoRules ¶
func (*Handler) RefreshRepository ¶
func (*Handler) RefreshStack ¶
func (*Handler) ResolveStackMembership ¶
type Options ¶
type Options struct {
Pool *pgxpool.Pool
REST *gh.RESTClient
GraphQL *gh.GraphQLClient
InstallationID int64
OrgID int64
BatchWindow time.Duration
BackfillPageSize int
CacheObserver store.CacheObserver
BranchObserver BranchObserver
}
Click to show internal directories.
Click to hide internal directories.