sessionresultcache

package
v0.158.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 11 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 sessionresultcache retains bounded display results on one device. Entries are a private client cache; callers must freshly authorize their server run and input scope before either writing or reading them.

Index

Constants

View Source
const DirEnv = "DATATUG_SESSION_RESULTS_DIR"
View Source
const MaxBytes = 4 << 20

Variables

View Source
var ErrUnavailable = errors.New("local dashboard display cache unavailable")

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Authority        string               `json:"authority"`
	Actor            string               `json:"actor"`
	DatabaseID       string               `json:"databaseId"`
	ProjectID        string               `json:"projectId"`
	SessionID        string               `json:"sessionId"`
	RunID            string               `json:"runId"`
	InputSnapshotID  string               `json:"inputSnapshotId"`
	Scope            sessioncontext.Scope `json:"scope"`
	DefinitionDigest string               `json:"definitionDigest"`
}

type Cache

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

func New

func New(root string) (*Cache, error)

func NewDefault

func NewDefault() (*Cache, error)

func (*Cache) Get

func (c *Cache) Get(binding Binding) (json.RawMessage, error)

func (*Cache) Put

func (c *Cache) Put(binding Binding, payload json.RawMessage) error

Jump to

Keyboard shortcuts

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