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

reviewdata

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reviewdata defines storage-independent review identities and results.

Index

Constants

This section is empty.

Variables

View Source
var ErrExpired = errors.New("captured diff expired")
View Source
var ErrNotFound = errors.New("diff not found")
View Source
var ErrSubmissionConflict = errors.New("submission ID reused with different input")

Functions

func VersionID

func VersionID(diffID, revision string) string

Types

type Binding

type Binding struct {
	ContextID    string
	LocationID   *string
	RepositoryID *string
	DiffIDs      map[review.DiffMode]string
}

type ContextInfo

type ContextInfo struct {
	Source           string
	Stale            bool
	Sessions         []SessionAssociation
	Metadata         *ingestion.Metadata
	ID               string
	Kind             string
	Root             *string
	LocationID       *string
	RepositoryID     *string
	CommonDir        *string
	WorktreeKey      *string
	SubmittedFrom    *string
	CreatedAt        int64
	LastSubmittedAt  int64
	ExpiresAt        *int64
	ScopeSummaries   []review.ScopeSummary
	ChangedFileCount *int
	// Commits counts captured branch commits; nil when none were captured.
	Commits *review.CommitRange

	// ActivityAt is the winning submission activity for heads; captured activity otherwise.
	ActivityAt int64
	// StreamID names the source/repository/checkout/branch/comparison stream;
	// LatestContextID is that stream's current head.
	StreamID        *string
	LatestContextID *string
}

type FileVersion added in v0.2.1

type FileVersion struct {
	DiffID      string
	VersionID   string
	Fingerprint *string
}

FileVersion identifies a stored scope and requested file without loading its manifest or preview. A nil fingerprint means the file is absent.

type SessionAssociation

type SessionAssociation struct {
	SourceID        string `json:"sourceId"`
	Harness         string `json:"harness"`
	ID              string `json:"id"`
	Name            string `json:"name,omitempty"`
	FirstObservedAt int64  `json:"firstObservedAt"`
	LastObservedAt  int64  `json:"lastObservedAt"`
}

type User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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