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 (*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.