learnsession

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package learnsession finds learning's signals in the sessions behind a change (design 08 section 3): its answered asks, its interventions and its fixed findings. It joins a change to its sessions by the change's Session trailers, else by time through the slice records of the change's window, and reads each session's log only through the adapters' read-only logs. Nothing but those three kinds' text is passed on, and a log that cannot be read is a gap, never an error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader finds the signals in sessions' logs, read through one or more adapters' Logs. It implements learn.Sessions. Each session's log is read once and kept, so a session behind several changes is read once.

func New

func New(logs ...adapter.Logs) *Reader

New returns a Reader over logs, asked in order: the first that has a session's log wins.

func (*Reader) Signals

func (r *Reader) Signals(c vcs.Change, recorded []string, after time.Time) (signals []learn.Signal, read []string, gaps []learn.SessionGap)

Signals returns the signals in the sessions behind change c: those its Session trailers name, matched by trailer, then those of recorded the trailers do not name, matched by time. Asks and interventions count when they fall in the window (after, c.Time]; a fixed finding counts where its passing report falls, or, when its own report marks it fixed, where that report falls. read lists each session whose log was read, once; gaps holds one entry, with Change left empty, for each session whose log is unavailable.

Jump to

Keyboard shortcuts

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