Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
example-api
command
Package main implements example-api, a reference example of the ghsync zero-duplication consumer pattern.
|
Package main implements example-api, a reference example of the ghsync zero-duplication consumer pattern. |
|
fake-github
command
fake-github runs the scriptable GitHub stand-in as a standalone server for local development (docker-compose points ghsyncd at it).
|
fake-github runs the scriptable GitHub stand-in as a standalone server for local development (docker-compose points ghsyncd at it). |
|
ghrecord
command
|
|
|
ghsyncd
command
ghsyncd is the ghsync sync engine daemon.
|
ghsyncd is the ghsync sync engine daemon. |
|
loadgen
command
loadgen replays recorded repository truth through standalone fake GitHub and exits successfully only after every end-to-end load assertion holds.
|
loadgen replays recorded repository truth through standalone fake GitHub and exits successfully only after every end-to-end load assertion holds. |
|
stream-tail
command
stream-tail is the reference example consumer for pkg/streamclient.
|
stream-tail is the reference example consumer for pkg/streamclient. |
|
Package db embeds the SQL migration files so the migrate command can apply them without a filesystem dependency.
|
Package db embeds the SQL migration files so the migrate command can apply them without a filesystem dependency. |
|
internal
|
|
|
budget
Package budget owns the single admission and accounting choke point for GitHub requests (SYNC_ENGINE C-B1..C-B6).
|
Package budget owns the single admission and accounting choke point for GitHub requests (SYNC_ENGINE C-B1..C-B6). |
|
changeinputs
Package changeinputs builds the bounded, source-derived ownership inputs attached to one exact pull-request base/head observation.
|
Package changeinputs builds the bounded, source-derived ownership inputs attached to one exact pull-request base/head observation. |
|
clocktest
Package clocktest provides deterministic clocks for tests that coordinate concurrent work around absolute deadlines.
|
Package clocktest provides deterministic clocks for tests that coordinate concurrent work around absolute deadlines. |
|
codeowners
Package codeowners parses and resolves CODEOWNERS path rules without applying any reviewer-ranking policy.
|
Package codeowners parses and resolves CODEOWNERS path rules without applying any reviewer-ranking policy. |
|
config
Package config loads ghsyncd configuration from the environment.
|
Package config loads ghsyncd configuration from the environment. |
|
derive
Package derive owns M5's pure derivation seam and C-P5 dirty-set drain loop.
|
Package derive owns M5's pure derivation seam and C-P5 dirty-set drain loop. |
|
dispatch
Package dispatch classifies durable webhook hints and coalesces them into River refresh jobs.
|
Package dispatch classifies durable webhook hints and coalesces them into River refresh jobs. |
|
drift
Package drift implements C-O3's sampled, full-fetch semantic validation.
|
Package drift implements C-O3's sampled, full-fetch semantic validation. |
|
fakegithub
Package fakegithub provides a scriptable GitHub HTTP server for integration tests and local load-replay runs.
|
Package fakegithub provides a scriptable GitHub HTTP server for integration tests and local load-replay runs. |
|
fetch
Package fetch turns durable River pointers into budget-gated authoritative GitHub fetches and transactional mirror writes.
|
Package fetch turns durable River pointers into budget-gated authoritative GitHub fetches and transactional mirror writes. |
|
gh
Package gh holds GitHub client plumbing shared by the sync engine and the fake GitHub test server.
|
Package gh holds GitHub client plumbing shared by the sync engine and the fake GitHub test server. |
|
ingress
Package ingress implements the intentionally small webhook commit path.
|
Package ingress implements the intentionally small webhook commit path. |
|
metrics
Package metrics owns ghsync's OpenTelemetry meter provider and Prometheus exposition.
|
Package metrics owns ghsync's OpenTelemetry meter provider and Prometheus exposition. |
|
observer
Package observer provides shared observer-composition helpers.
|
Package observer provides shared observer-composition helpers. |
|
opsstate
Package opsstate persists trust-critical operation completion heartbeats.
|
Package opsstate persists trust-critical operation completion heartbeats. |
|
outbox
Package outbox owns the database-level protocol shared by every internal change-event writer and by the visibility watermarker.
|
Package outbox owns the database-level protocol shared by every internal change-event writer and by the visibility watermarker. |
|
pipeline
Package pipeline carries one event-origin timestamp and the latest real cache-transaction commit through refresh fan-out.
|
Package pipeline carries one event-origin timestamp and the latest real cache-transaction commit through refresh fan-out. |
|
queue
Package queue wires River with the sync engine's three priority-class queues (SYNC_ENGINE C-B3): interactive > event > sweep.
|
Package queue wires River with the sync engine's three priority-class queues (SYNC_ENGINE C-B3): interactive > event > sweep. |
|
repoutil
Package repoutil contains small repository-sync helpers shared by fetch, sweep, and drift.
|
Package repoutil contains small repository-sync helpers shared by fetch, sweep, and drift. |
|
store
Package store owns Postgres connectivity and schema migration.
|
Package store owns Postgres connectivity and schema migration. |
|
store/rdsiam
Package rdsiam generates short-lived Amazon RDS IAM database auth tokens.
|
Package rdsiam generates short-lived Amazon RDS IAM database auth tokens. |
|
stream
Package stream owns the C-S2 visibility watermark and C-S7 retention machinery for the transactional change-event outbox.
|
Package stream owns the C-S2 visibility watermark and C-S7 retention machinery for the transactional change-event outbox. |
|
sweep
Package sweep implements M4's bounded-staleness reconciliation, resumable authoritative listings, disappearance verification, delivery-gap healing, and retention work on River's sweep queue.
|
Package sweep implements M4's bounded-staleness reconciliation, resumable authoritative listings, disappearance verification, delivery-gap healing, and retention work on River's sweep queue. |
|
telemetry
Package telemetry owns ghsync's OpenTelemetry tracing runtime.
|
Package telemetry owns ghsync's OpenTelemetry tracing runtime. |
|
testdb
Package testdb provides fully isolated, migrated Postgres databases for integration tests.
|
Package testdb provides fully isolated, migrated Postgres databases for integration tests. |
|
pkg
|
|
|
streamclient
Package streamclient is the reference implementation of ghsync's public Postgres change-stream contract.
|
Package streamclient is the reference implementation of ghsync's public Postgres change-stream contract. |
Click to show internal directories.
Click to hide internal directories.
