Versions in this module Expand all Collapse all v0 v0.1.7 Oct 14, 2026 Changes in this version type Baseline + Paired bool v0.1.6 Oct 11, 2026 v0.1.5 Oct 5, 2026 v0.1.4 Oct 4, 2026 v0.1.3 Oct 1, 2026 v0.1.2 Oct 1, 2026 v0.1.1 Oct 1, 2026 v0.1.0 Sep 30, 2026 Changes in this version + const AcksFile + const AcksFormat + const ForeignFile + const Format + const KindAcks + const KindForeign + const KindLedger + const KindRefs + const LedgerFile + const MinFormat + const RefsFile + const RootShard + var ActorKindValues = []ActorKind + var ErrBadHeader = errors.New("ledger: missing or malformed header line") + var ErrColumns = errors.New("ledger: column count mismatch") + var ErrConflict = errors.New("ledger: unresolved merge conflict") + var ErrField = errors.New("ledger: bad field value") + var ErrFormat = errors.New("ledger: format version not supported by this tool") + var ErrKind = errors.New("ledger: file kind does not match") + var ErrTimeRange = errors.New("ledger: timestamp outside the years RFC 3339 can write") + func Carry(prev, cur []RefRow, effective func(RefRow) string, current func(RefRow) string) []int + func EscapeField(s string) string + func ParseTime(s string) (time.Time, error) + func UnescapeField(s string) string + type Ack struct + Actor string + ActorKind ActorKind + At time.Time + BlockHash string + DelegatedBy string + Doc string + Env string + ID string + Line int + Note string + Repo string + Rule int + Sentence string + SentenceHash string + type AckKey struct + Doc string + Env string + ID string + Line int + Repo string + type Acks struct + Header Header + Rows []Ack + func DecodeAcks(r io.Reader) (Acks, error) + func (a Acks) Bytes() []byte + func (a Acks) Encode(w io.Writer) error + func (a Acks) Latest() map[AckKey]Ack + type ActorKind string + const ActorAgent + const ActorHuman + type Baseline struct + Ack *Ack + Acked string + Seen string + func Baselines(prev []RefRow, cur []RefRow, latest map[AckKey]Ack, scannedAt time.Time, ...) []Baseline + type Foreign struct + Header Header + Rows []ForeignRow + func DecodeForeign(r io.Reader) (Foreign, error) + func (f Foreign) Blocks() []block.Block + func (f Foreign) Bytes() []byte + func (f Foreign) Encode(w io.Writer) error + type ForeignRow struct + Commit string + type Header struct + Commit string + Extract int + Format int + Kind string + Repo string + ScannedAt time.Time + type Ledger struct + Header Header + Rows []Row + func DecodeLedger(r io.Reader) (Ledger, error) + func Unshard(shards map[string]Ledger) Ledger + func (l Ledger) ByHash() map[string][]Row + func (l Ledger) Bytes() []byte + func (l Ledger) Encode(w io.Writer) error + func (l Ledger) Index() map[string]Row + func (l Ledger) Shard() map[string]Ledger + type RefRow struct + AckedHash string + Args map[string]string + Carrier block.Carrier + Doc string + Env string + ID string + Line int + Repo string + SeenHash string + SentenceHash string + Verb string + func FromReference(repo string, r block.Reference) RefRow + func (r RefRow) Key() AckKey + func (r RefRow) ToReference() block.Reference + type Refs struct + Header Header + Rows []RefRow + func DecodeRefs(r io.Reader) (Refs, error) + func (r Refs) ByID() map[string][]RefRow + func (r Refs) Bytes() []byte + func (r Refs) Encode(w io.Writer) error + type Row struct + Args map[string]string + End int + Env string + File string + Hash string + ID string + Kind block.Kind + Owner string + Repo string + Stability block.Stability + Start int + Symbol string + func FromBlock(repo string, b block.Block) Row + func (r Row) ToBlock() block.Block