Documentation
¶
Overview ¶
Package checkpoint defines durable resume contracts enforcing ST-1 and ST-2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct {
Schema string
Table string
ShadowTable string
SlotName string
PublicationName string
Watermark copier.Watermark
LastAppliedLSN decode.LSN
SourceFingerprint string
TargetFingerprint string
Phase Phase
UpdatedAt time.Time
}
Checkpoint is the single durable resume record.
type Phase ¶
type Phase uint8
Phase identifies the durable schema-change phase. Values are opaque labels: the happy path visits them in declaration order, but PhaseFailed is reachable from any phase, so callers never compare phases for order — they switch on the value or ask Terminal.
const ( // PhaseCopying copies source rows. PhaseCopying Phase = iota + 1 // PhaseCatchingUp applies captured changes. PhaseCatchingUp // PhaseVerifying verifies convergence. PhaseVerifying // PhaseCutover performs the swap. PhaseCutover // PhaseDone is successful and terminal. PhaseDone // PhaseFailed is unsuccessful and terminal. PhaseFailed )
Click to show internal directories.
Click to hide internal directories.