receivercontinuation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 13 Imported by: 1 module, 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 receivercontinuation retains transfer dependencies across authenticated protocol generations without extending the lifetime of any session authority.

Index

Constants

This section is empty.

Variables

View Source
var ErrReplacement = errors.New("receiver replacement violates authenticated session continuity")

Functions

This section is empty.

Types

type Session

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

Session owns the one replacement flight shared by discovery, revision, range, and quota-wait consumers. Output transactions belong to the unchanged job.

func New

func New(ctx context.Context, current *receiversession.Runtime, replace Replace) (*Session, error)

func (*Session) AcquireDirectory

func (s *Session) AcquireDirectory(ctx context.Context, id catalog.DirectoryID) (catalog.DirectorySnapshot, func(), error)

func (*Session) BindDownloadMetrics

func (s *Session) BindDownloadMetrics(metrics *downloadmetrics.Metrics)

func (*Session) Close

func (s *Session) Close()

func (*Session) Current

func (s *Session) Current() revisionwait.GenerationToken

func (*Session) ObserveRemainingWork

func (s *Session) ObserveRemainingWork(snapshot func() transferlanes.RemainingWork) func()

A transfer and its output survive protocol replacement. Keep its demand on the active generation, otherwise a bounded read window hides the rest of the job.

func (*Session) OpenDirectoryPages

func (s *Session) OpenDirectoryPages(ctx context.Context, id catalog.DirectoryID) (catalog.DirectoryPageCursor, error)

func (*Session) OpenRevision

func (s *Session) OpenRevision(ctx context.Context, file catalog.FileID) (transfer.OpenedRevision, error)

func (*Session) ProtocolSessionID

func (s *Session) ProtocolSessionID() protocolsession.ProtocolSessionID

func (*Session) ReadRange

func (s *Session) ReadRange(ctx context.Context, lease transfer.RevisionHandle, descriptor content.FileRevisionDescriptor, requested content.Range, sink transfer.RangeSink) error

func (*Session) RecordOutput

func (s *Session) RecordOutput(bytes uint64)

func (*Session) ReleaseRevision

func (s *Session) ReleaseRevision(ctx context.Context, lease transfer.RevisionHandle) error

func (*Session) Runtime

func (s *Session) Runtime() *receiversession.Runtime

func (*Session) WaitForChange

Jump to

Keyboard shortcuts

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