session

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 3 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 session defines shared session errors, limits and lane identities. Session roles are implemented by sendersession and receiversession; observation contains their immutable event vocabulary.

Index

Constants

View Source
const (
	DefaultActiveOperations     = 256
	DefaultTrackedOperations    = 4_096
	SessionStoppedCode          = protocolsession.SessionTerminalCodeLast
	MaximumTerminalMessageBytes = protocolsession.MaxSessionTerminalMessageBytes
)

Variables

View Source
var (
	ErrRuntimeConfig = errors.New("session runtime configuration is invalid")
	ErrRuntimeClosed = errors.New("session runtime is closed")
	ErrHandshake     = errors.New("session runtime handshake failed")
)
View Source
var ErrOperationMissing = errors.New("session runtime operation is not active")
View Source
var ErrOperationOverflow = errors.New("session runtime operation response queue is full")

Functions

func PeerStopped added in v0.1.5

func PeerStopped(err error) bool

PeerStopped reports whether err carries the peer's authenticated session terminal announcing that its runtime stopped, which ends the share for good.

Types

type LaneIdentity

type LaneIdentity struct {
	ID    uint32
	Epoch uint32
}

LaneIdentity names one physical FrameChannel incarnation without leaking any provider or path metadata into core. Epoch zero is reserved for the transcript lane; authenticated attachments always use a positive epoch.

func (LaneIdentity) Valid

func (identity LaneIdentity) Valid(initial bool) bool

type LaneRejectedError

type LaneRejectedError struct {
	Rejection protocolsession.LaneRejection
}

LaneRejectedError is safe to expose only after WS2N's sender signature has been verified against the exact LaneHello digest.

func (*LaneRejectedError) Error

func (err *LaneRejectedError) Error() string

Directories

Path Synopsis
Package catalogflow handles the share descriptor and progressive LIST_CHILDREN.
Package catalogflow handles the share descriptor and progressive LIST_CHILDREN.
Package channeltest defines the transport-neutral FrameChannel behavior matrix.
Package channeltest defines the transport-neutral FrameChannel behavior matrix.
Package contentflow implements the v2 revision and file-local block operation semantics above protocolsession's authenticated opaque-message boundary.
Package contentflow implements the v2 revision and file-local block operation semantics above protocolsession's authenticated opaque-message boundary.
internal
admissiongate
Package admissiongate joins short-lived work before its owner's resources are released.
Package admissiongate joins short-lived work before its owner's resources are released.
sessioncore
Package sessioncore owns encrypted lanes, exact-generation operation routing, and role-neutral session termination.
Package sessioncore owns encrypted lanes, exact-generation operation routing, and role-neutral session termination.
Package sessionobs defines transport-neutral session observations and bounded diagnostic snapshots.
Package sessionobs defines transport-neutral session observations and bounded diagnostic snapshots.
Package peerslot owns bounded negotiation identities for one receiver session.
Package peerslot owns bounded negotiation identities for one receiver session.
Package protocolsession implements the authenticated end-to-end session primitives shared by protocol roles.
Package protocolsession implements the authenticated end-to-end session primitives shared by protocol roles.
Package receivercontinuation retains transfer dependencies across authenticated protocol generations without extending the lifetime of any session authority.
Package receivercontinuation retains transfer dependencies across authenticated protocol generations without extending the lifetime of any session authority.
Package receiversession owns download-side catalog, revision, block and peer operations.
Package receiversession owns download-side catalog, revision, block and peer operations.
Package requestlane estimates control-response completion independently of content throughput, transport providers, and operation delivery authority.
Package requestlane estimates control-response completion independently of content throughput, transport providers, and operation delivery authority.
Package revisionaccess keeps a receiver's immutable file identity independent of the expiring wire capabilities used to read it.
Package revisionaccess keeps a receiver's immutable file identity independent of the expiring wire capabilities used to read it.
Package sendersession owns sharing-side session admission, catalog and content services, and orderly shutdown.
Package sendersession owns sharing-side session admission, catalog and content services, and orderly shutdown.
Package turncontrol defines session-authenticated TURN delegation messages.
Package turncontrol defines session-authenticated TURN delegation messages.

Jump to

Keyboard shortcuts

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