Help us shape the future of Go! Take the 2026 Go Developer Survey

blobverify

package
v0.19.1271 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkflowName    = "VerifyBlobs"
	DayWorkflowName = "VerifyBlobsDay"
	WorkflowID      = "general-blob-verify"

	ProgressQueryType = "progress"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DayBucket

type DayBucket struct {
	Table string `json:"table"`
	Day   string `json:"day"`
}

DayBucket is one unit of work: one table on one UTC calendar day.

type DayRequest

type DayRequest struct {
	Table string `json:"table"`
	Day   string `json:"day"`
}

type DayResult

type DayResult struct {
	Checked       int64    `json:"checked"`
	Mismatched    int64    `json:"mismatched"`
	NotSet        int64    `json:"not_set"`
	MismatchedIDs []string `json:"mismatched_ids,omitempty"`
}

type Progress

type Progress struct {
	CurrentTable string                   `json:"current_table"`
	CurrentDay   string                   `json:"current_day"`
	DaysTotal    int                      `json:"days_total"`
	DaysDone     int                      `json:"days_done"`
	Tables       map[string]TableProgress `json:"tables"`
	Done         bool                     `json:"done"`
}

Progress is the live snapshot returned by the parent's progress query.

type RangeRequest

type RangeRequest struct {
	Tables      []string                 `json:"tables"`
	Initialized bool                     `json:"initialized"`
	Pending     []DayBucket              `json:"pending"`
	Tallies     map[string]TableProgress `json:"tallies"`
	DaysTotal   int                      `json:"days_total"`
	DaysDone    int                      `json:"days_done"`
}

RangeRequest is the parent orchestrator input. Callers populate only Tables; the parent fills in the rest and carries it across continue-as-new.

type TableProgress

type TableProgress struct {
	Checked    int64 `json:"checked"`
	Mismatched int64 `json:"mismatched"`
	NotSet     int64 `json:"not_set"`
	// MismatchedIDs samples mismatched row ids, capped to keep history bounded.
	MismatchedIDs []string `json:"mismatched_ids,omitempty"`
}

Jump to

Keyboard shortcuts

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