sessionresultcache

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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