entity

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 0 Imported by: 2 modules, 1 package

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 entity defines Ref, the plain-data reference to "a thing the user is looking at" that tuigoff components pass around: the row under a grid's cursor, an entry pinned in a sidebar. It carries no behaviour beyond equality and knows nothing about sessions, LLMs or products; higher layers (for example strongo/aichat's session.EntityRef) alias or convert to it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ref

type Ref struct {
	// Type names the kind of entity, e.g. "happening" or "recordset".
	Type string `json:"type" yaml:"type"`
	// Keys identify the entity within its Type, e.g. {"spaceID": "...", "id": "..."}.
	Keys map[string]string `json:"keys" yaml:"keys"`
	// Title is a display hint (a sidebar row, a prompt). It may be stale and
	// is ignored by Same.
	Title string `json:"title,omitempty" yaml:"title,omitempty"`
}

Ref is a stable reference to a product entity.

func (Ref) Same

func (r Ref) Same(o Ref) bool

Same reports whether two refs point at the same entity (Title ignored).

Jump to

Keyboard shortcuts

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