sessioncheckpoint

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 2 Imported by: ? 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 sessioncheckpoint provides the single ephemeral handoff slot for a session. It is intentionally separate from file-edit checkpoints.

Index

Constants

View Source
const MaxBytes = 16 << 10
View Source
const MetadataKey = "session_checkpoint"

Variables

This section is empty.

Functions

This section is empty.

Types

type Slot

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

func New

func New() *Slot

func (*Slot) Clear

func (s *Slot) Clear()

func (*Slot) ClearIfGeneration

func (s *Slot) ClearIfGeneration(gen uint64) bool

func (*Slot) Read

func (s *Slot) Read() (string, uint64)

func (*Slot) Restore

func (s *Slot) Restore(meta map[string]any)

func (*Slot) SaveToMetadata

func (s *Slot) SaveToMetadata() map[string]any

func (*Slot) Write

func (s *Slot) Write(text string) error

Jump to

Keyboard shortcuts

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